应用程序在IOS 6上崩溃 - UIViewControllerHierarchyInconsistency
问题描述:
我的应用程序运行正常,直到我更新到Xcode 4.5并在IOS 6上运行它。
现在它崩溃了异常 -
UIViewControllerHierarchyInconsistency - 一个视图最多只能关联一个一次查看控制器。
My app was working just fine until I updated to Xcode 4.5 and I ran it on IOS 6. Now it crashes with the exception - UIViewControllerHierarchyInconsistency - A view can only be associated with at most one view controller at a time.
有没有人知道为什么以及如何解决它?
Does any one have an idea why and how can I solve it?
答
我解决了这个问题 - 显然你需要删除XIB文件中的UIViewController,只留下视图。
Well I fixed that problem - Apparently you need to remove the UIViewController in the XIB file, and leave only the view.