故事板崩溃 - 符合编码的关键sceneViewController [英] Storyboard crash - coding-compliant key sceneViewController

查看:162
本文介绍了故事板崩溃 - 符合编码的关键sceneViewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm getting an intermittent crash using Storyboards in iOS 5. Every so often, I get a SIGABRT when I try to instantiate a new object with a view controller from my Storyboard. It seems like a very generic error, but I can't find anyone else that's seen this. Thanks for your help!

SectionLandscapeViewController *sectionViewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil] instantiateViewControllerWithIdentifier:@"SectionLandscapeViewController"];

崩溃......

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


推荐答案

我能够通过在iPhone模拟器中执行重置内容和设置来解决此问题。

I was able to fix this by doing a "Reset Content and Settings" in the IPhone Simulator.

这篇关于故事板崩溃 - 符合编码的关键sceneViewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆