不明白有关 NSUnknownKeyException 的错误消息
我的应用程序将因我不知道的原因而崩溃。 我收到这样的错误:
" 由于未捕获的异常“NSUnknownKeyException”而终止应用程序, 原因: '[ setValue:forUndefinedKey:]: 此类不符合键的键值编码 视图控制器。”
My application is going to crash for a reason I don't know.
I am getting an error like this:
" Terminating app due to uncaught exception 'NSUnknownKeyException',
reason: '[ setValue:forUndefinedKey:]:
this class is not key value coding-compliant for the key
viewController."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此错误主要出现在 XIB 的
文件所有者
的连接断开时。您可以在文件所有者
的连接选项卡中进行检查。右边会有一个小感叹号。This erro mainly appears when the connections of the XIB's
file's owner
are broken. You check this in the connections tab of thefile's owner
. There will be little exclamation mark at the right.