我正在将 Storyboard 用于主/详细 iPad 应用程序。MenutabViewController 是一个 UITabBarViewController。应用程序的另一个场景从同一个 Controller 开始,做类似的 PUSH segues(push->master,push-detail)就可以了。但是这个给了我这个信息。这条消息再也不会给其他人了,因为我用谷歌搜索了很多: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