Skip to content

Crash when numberOfContentControllersForProfileViewController is 1 #26

Description

@francesc-o

When I try to use DBProfileViewController with only one contentController (so with hidden segmented control) the app crash. Even with the example project there's the same issue, and even if the hidesSegmentedControlForSingleContentController property is set to NO.
The error is: [LayoutConstraints] The view hierarchy is not prepared for the constraint: <NSLayoutConstraint:0x60800028f5f0 V:[_UILayoutGuide:0x7fed36647e00]-(>=0)-[DBProfileSegmentedControlView:0x7fed36619540] (inactive)> and
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
Any suggestion to fix it @devonboyer ?
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions