ios5 – iOS6中的CollapsableTableView,UIViewControllerHierarchyInconsistency错误

前端之家收集整理的这篇文章主要介绍了ios5 – iOS6中的CollapsableTableView,UIViewControllerHierarchyInconsistency错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个使用CollapsableTableView的iPhone应用程序.升级到iOS 6后,我在应用程序中崩溃,出现以下错误.

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

如果我们中的任何人遇到同样的问题以便找到解决方案,那将会非常有帮助.提前致谢.

解决方法

你必须使用这样的东西:

[self.addSubView collapsableViewController.view];

不允许这种关联,因为一个视图不能与错误描述中所述的两个视图控制器相关联.

猜你在找的iOS相关文章