当前位置: 代码迷 >> Iphone >> 【急】请帮忙看一下,Controller间跳转报错
  详细解决方案

【急】请帮忙看一下,Controller间跳转报错

热度:60   发布时间:2016-04-25 05:48:05.0
【急...】请帮忙看一下,Controller间跳转出错
本帖最后由 hengdafei 于 2014-03-20 09:08:42 编辑
Controller的定义是一致的,怎么还提示找不到的错呢。


2014-03-19 22:30:04.142 TestCombobox[1871:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/hengchengfei/Library/Application Support/iPhone Simulator/7.1-64/Applications/EB6B36F9-A5B9-4BD7-B969-66959B14287E/TestCombobox.app> (loaded)' with name 'DetailViewController' and directory 'MainStoryboard.storyboardc''




------解决方案--------------------
不要把controller定义为局部变量。这样方法执行完了,会被释放掉。
一种解决办法:把controller定义为类变量。
  相关解决方案