原文:this class is not key value coding-compliant for the key XXX错误的解决方法

今天在听iOS开发讲座时,照着讲座的demo输入代码,尝试运行时遇到了 this class is not key value coding compliant for the key digitPressed. 的错误,经过一番搜索和排查发现是自己在设置IBAction和IBOutlet时有多余的连线,按下ctrl键检查控件的连接将多余的连续删除后程序正常运行。 ...

2012-03-16 23:12 0 26829 推荐指数:

查看详情

setValue:forUndefinedKey this class is not key value coding-compliant for the key

下午开发过程中遇到一个错误,结果被的真惨,从上午 11 点查错一直查到下午 2 点才找到错误的原因,真的郁闷的不行。 关于查错这么久,主要的原因是: 1. 自己对 IOS 开发还不熟悉2. 不知道怎么得到错误的详细信息, 连调出来 All Output 面板查看错误信息都不 ...

Mon Jul 15 01:19:00 CST 2013 0 12862
使用Key-Value Coding

之前的一篇文章介绍了实现Key-Value Coding的5种方法,但用的最多的还是基于NSKeyValueCoding协议的。本文介绍的都是基于这个前提的。 key是啥? A key is a string that identifies a specific property ...

Tue Mar 05 20:00:00 CST 2013 0 3146
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM