不明白有关 NSUnknownKeyException 的错误消息

发布于 2024-11-30 13:13:22 字数 176 浏览 1 评论 0原文

我的应用程序将因我不知道的原因而崩溃。 我收到这样的错误:

" 由于未捕获的异常“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淡淡の花香 2024-12-07 13:13:22

此错误主要出现在 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 the file's owner. There will be little exclamation mark at the right.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文