【iOS】this class is not key value coding-compliant for the key ...

一般此问题 都是由 interface build 与代码中 IBOutlet 的连接所引起的。

可能是在代码中对 IBOutlet 的名称进行了修改,导致 interface build 中的连接实效。

在 File's Owner 上按住 Control, 并点击鼠标,会出现如下界面:

可以清楚地看到连接情况,改动后无效的变量会显示叉号,需要删除。

参考:http://www.cnblogs.com/zhulin/archive/2011/05/26/2058014.html

原文地址:https://www.cnblogs.com/jaxer/p/5468370.html