DBProfileViewController icon indicating copy to clipboard operation
DBProfileViewController copied to clipboard

Crash when numberOfContentControllersForProfileViewController is 1

Open francesc-o opened this issue 8 years ago • 0 comments

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

francesc-o avatar Jul 19 '17 14:07 francesc-o