setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
来源:互联网 发布:北京交通大学软件学院 编辑:程序博客网 时间:2024/05/17 21:30
其中一个变量或属性(variable 或 property)已经和一个nib或storyboard文件进行了连接,但是后来在Xcode 开发环境,将该 变量或属性名进行了更改。
如 UILabel *label; 更改为 UILabel *newLabel; 这个时候编译或运行App,将出现类似前面的异常信息。
如何解决这一问题呢?
你需要解除或删除之前连接了连接(connection),然后重新建立新的变量或属性名到nib或storyboard文件之间的连接。
下图是管理和维护属性和View Controller之间Outlet连接图:
如果还不能解决问题,可能是由于xib文件或者storyboard文件中得变量或属性名还没有被改变过来或者原先旧的变量名还有残留:
此时,根据编译器错误提示信息,找到对应的残留项删除之即可:
reference: http://www.entlib.net/?p=892
- 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
- Error:java.net.BindException: Address already in use: JVM_Bind <null>:8080
- Android程序怎样禁止横竖屏切换
- poj1850
- linux centos 5.2 nfs 挂载 区别 iscsi 挂载
- DbVisualizer 解决中文乱码问题
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- VS2010 VC Project的dafault Include设置
- 再一次决心
- iscsi 挂载网络存储设备
- SSIS使用中的问题点记录
- Java的抽象类与抽象方法
- Mybatis环境搭建及简单入门
- linux 环境下java调用matlab小结
- springside出现Description Resource Path Location Type