小编use*_*726的帖子

故事板崩溃 - 符合编码的关键sceneViewController

我在iOS 5中使用Storyboard进行间歇性崩溃.当我尝试使用Storyboard中的视图控制器实例化一个新对象时,我经常会得到一个SIGABRT.这似乎是一个非常普遍的错误,但我找不到其他人看到这个.谢谢你的帮助!

SectionLandscapeViewController *sectionViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"SectionLandscapeViewController"];
Run Code Online (Sandbox Code Playgroud)

崩溃......

Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIProxyObject 0xa0fba20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key sceneViewController.'
Run Code Online (Sandbox Code Playgroud)

key storyboard uiviewcontroller ios5

13
推荐指数
1
解决办法
3001
查看次数

标签 统计

ios5 ×1

key ×1

storyboard ×1

uiviewcontroller ×1