得到:***断言失败 - [UIStoryboardPushSegue执行]

时间:2012-11-13 15:27:58

标签: ios storyboard segue assertion

我正在使用Storyboard作为主/详细iPad应用程序。 MenutabViewController是一个UITabBarViewController。 应用程序的另一个场景从同一个Controller开始,执行类似的PUSH segues(push-> master,push-detail)是可以的。但是这个给了我这个信息。 这条消息永远不会再给别人了,因为我用Google搜索了很多:p。

你可以在这里看到故事板的图像(不允许发布一个) http://qupload.com/images/stackoverq.png

2012-11-13 17:13:47.244[9777:13d03] prepareForSegue: settingsStoreSegue
2012-11-13 17:13:47.244[9777:13d03] *** Assertion failure in -[UIStoryboardPushSegue perform], /SourceCache/UIKit_Sim/UIKit-2372/UIStoryboardBuiltInSegues.m:24
2012-11-13 17:13:52.323 IpposFfs[9777:13d03] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', **reason: 'Expected a navigation controller, but got an instance of 'MenuTabViewController' instead, while performing a split view controller push segue (identifier 'settingsStoreSegue') for index #0'**
*** First throw call stack:
(0x1cd6012 0x1606e7e 0x1cd5e78 0x109cf35 0x9a3ca2 0x995ad9 0x630422 0x7326b 0x5fd8d5 0x5fdb3d 0x1004e83 0x1c95376 0x1c94e06 0x1c7ca82 0x1c7bf44 0x1c7be1b 0x1c307e3 0x1c30668 0x54e65c 0x2cbd 0x2be5)
libc++abi.dylib: terminate called throwing an exception

0 个答案:

没有答案