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

use*_*726 13 key storyboard uiviewcontroller ios5

我在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)

小智 1

打开此控制器的 .xib 文件,然后右键单击“文件所有者”,然后检查您是否连接了任何错误的属性或插座。如果插座错误,您会在插座右侧看到一个黄色小图标。只需删除它并尝试即可。