2013-06-29 56 views
0

最初寫我的代碼在以前的iOS和剛剛升級到iOS 6.1只接收以下錯誤。我是一個新手,所以原諒我,如果這是一個基本的問題,但我還沒有想出如何解決這個問題。告訴我要包含哪些代碼,如果這不能提供足夠的圖片,我很樂意發佈。完全錯誤:終止應用程序由於未捕獲的異常'UIViewControllerHierarchyInconsistency'


2013-06-28 17:44:06.007 DrinkMixer[5747:907] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time! View <UITableView: 0x81f0a00; frame = (0 20; 320 460); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x723bac0>; layer = <CALayer: 0x723b480>; contentOffset: {0, 0}> is associated with <UIViewController: 0x723cb00>. Clear this association before associating this view with <MasterViewController: 0x7141860>.

回答

0

這種情況發生時,你有你的viewController的根多的UIView的。添加其他視圖作爲主視圖的子視圖,錯誤將消失。

相關問題