我的应用程序崩溃并产生“NSUnknownKeyException”

发布于 2025-01-03 13:17:52 字数 331 浏览 1 评论 0原文

我的应用程序在执行以下代码行后崩溃:-

[self.navigationController pushViewController:detailViewControllerObj animated:YES];

并且它在控制台窗口中给出以下错误消息:--

'NSUnknownKeyException',原因:'[ setValue:forUndefinedKey:]:这个类不是键值 关键细节描述标签的编码兼容。'

我花了很多时间寻找解决方案但没有成功.. 请帮助我找到解决方案..

my app crashes after execution of the following line of code:-

[self.navigationController pushViewController:detailViewControllerObj animated:YES];

and it gives the following error message at the console window:--

'NSUnknownKeyException', reason: '[
setValue:forUndefinedKey:]: this class is not key value
coding-compliant for the key detailDescriptionLabel.'

i spend a lot of time to find solution but not succeed..
Please help me in finding solution..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

北凤男飞 2025-01-10 13:17:52

我发现了问题......问题是我在 Xcode 4.2 上编码,它自动生成两个视图控制文件 root view 和DetailViewController 文件,并且我通过编码添加控件的习惯使我在删除现有的detailViewController xib 文件后注意力不集中DetailViewCntroller .h和.m文件中的代码我忘记从DetailViewController xib文件中删除detailViewLabel....

I figured out the problem ….the problem is that i am coding on Xcode 4.2 which automatically generates the two view control files root view and detailViewController files and my habit of adding controls by coding leaves me low concentration on detailViewController xib file after deleting the existing code in DetailViewCntroller .h and .m files i forgot to delete a detailViewLabel from the DetailViewController xib file..…..

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