“NSUnknownKeyException":该类不符合键值编码 [英] 'NSUnknownKeyException': this class is not key value coding-compliant for the key

查看:33
本文介绍了“NSUnknownKeyException":该类不符合键值编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了这条消息:

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

我该如何解决?

推荐答案

这通常是由于删除了一个 IB 对象但忘记删除它的链接.

That is generally due to deleting an IB object but forgetting to delete it's links.

IE 删除了一个 UIScrollView 但忘记删除它过去如何通过 IBOutlet 链接到 UIView.

IE deleting a UIScrollView but forgetting to delete how it used to link into UIView through an IBOutlet.

今天早些时候遇到了同样的问题...在这里找到了答案:http://www.iphonedevsdk.com/forum/iphone-sdk-development/47036-setvalue-forundefinedkey-class-not-key-value-编码兼容-key.html

Had the same problem earlier today... found the answer here: http://www.iphonedevsdk.com/forum/iphone-sdk-development/47036-setvalue-forundefinedkey-class-not-key-value-coding-compliant-key.html

这篇关于“NSUnknownKeyException":该类不符合键值编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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