今天在听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错误的解决方法_ios


作者:张荣华 

 

 


补充如图:


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