CollapsableTableView, UIViewControllerHierarchyInconsistency error in iOS6

I have an iPhone app that uses CollapsableTableView. After upgrading to iOS 6, I get a crash in the application with the following error.

"A view can only be associated with at most one view controller at a time! A view is associated with a CollapsableTableViewHeaderViewController: 0x8a93430. Clear this association before binding this view with CollapsableTableViewHeaderViewController: 0x8a943c0"

It would be very helpful if I had one of you encounter the same problem in order to find a solution for it. Thanks in advance.

+4
source share
1 answer

You should use something like this:

[self.addSubView collapsableViewController.view];

Such an association is not allowed because one view cannot be associated with two view controllers, as indicated in the error description.

+1
source

Source: https://habr.com/ru/post/1440505/


All Articles