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

时间:2023-03-09 04:00:52
this class is not key value coding-compliant for the key XXX错误的解决方法

转自:http://www.cnblogs.com/zhangronghua/archive/2012/03/16/iOSError1.html

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

this class is not key value coding-compliant for the key XXX错误的解决方法
作者:张荣华 
出处:http://zhangronghua.cnblogs.com 
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
补充如图:
this class is not key value coding-compliant for the key XXX错误的解决方法