setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
来源:互联网 发布:java 断点续传 编辑:程序博客网 时间:2024/05/17 22:15
转载地址 http://blog.csdn.net/freedom2028/article/details/8628793
其中一个变量或属性(variable 或 property)已经和一个nib或storyboard文件进行了连接,但是后来在Xcode 开发环境,将该 变量或属性名进行了更改。(直接从一个xib中拷贝一些控件到另一个xib可能会导致该问题)
如 UILabel *label; 更改为 UILabel *newLabel; 这个时候编译或运行App,将出现类似前面的异常信息。
如何解决这一问题呢?
你需要解除或删除之前连接了连接(connection),然后重新建立新的变量或属性名到nib或storyboard文件之间的连接。
下图是管理和维护属性和View Controller之间Outlet连接图:
如果还不能解决问题,可能是由于xib文件或者storyboard文件中得变量或属性名还没有被改变过来或者原先旧的变量名还有残留:
此时,根据编译器错误提示信息,找到对应的残留项删除之即可:
0 0
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- ... setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key latitudeLab
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key解决办法
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key lable1.'
- iOS: setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.
- iOS setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key 问题
- question:setValue:forUndefinedKey: this class is not key value coding-compliant for the key
- setValue:forUndefinedKey this class is not key value coding-compliant for the key
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- 关于 setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key的另一种错误
- iOS Xcode 6报错:setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key v
- iOS- 报错(崩)[< > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- ViewController 0x8f35e00> setValue:forUndefinedKey:]: this class is not key value coding-compliant f
- 高性能Mysql主从架构的复制原理及配置详解
- 完成端口(CompletionPort)详解 - 手把手教你玩转网络编程系列之三
- 最短路径Ⅲ—Floyd-Warshall算法
- Oracle同义词创建及其作用
- Android UI 设计之 TextView EditText 组件属性方法最详细解析
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- 模拟按键
- [leetcode] Sort Colors
- Ubuntu init启动流程分析
- ORA-08104: this index object xxxxx is being online built or rebuilt
- HDU4893 Wow! Such Sequence! 多校练习赛 树状数组
- 【No4.】对图片的压缩质量、压缩尺寸、读流压缩、方法介绍
- 位运算技巧
- 算术表达式求值