'NSUnknownKeyException': this class is not key value coding-compliant for the key

五迷三道 提交于 2019-12-05 10:37:59

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

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

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

In case that helps someone else, after checking and updating all your links between the views and the matching IBOulet, Cleaning you project can sometimes fix this issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!