我有一个使用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];
不允许这种关联,因为一个视图不能与错误描述中所述的两个视图控制器相关联.