setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key解决办法
来源:互联网 发布:算法基础与在线实践 编辑:程序博客网 时间:2024/05/18 02:54
1.最笨的情况是,比如一个单例调用以下方法 [[BNRImageStoresharedStore]setImage:imageforKey:Key];但是在实际的代码中由于Xcode自己填充了代码,可能误写为
[[BNRImageStore sharedStore] setValue:image forKey:Key];所以导致出错;
2.如果你在 storyboard中, 通过 Ctrl - Drag 方式声明了一个 @property , 但你又觉得 在 Ctrl - Drag 时 ,命名的property 不理想, 这时, 你直接在 .h 和 .m 文件中 修改了这个 实例变量的名字, 这时候,编译。,就会报错。
解决办法是
1. 在 connection inspector 中, 删除这个 outlet 的关联;
2. 在 .h 或 .m 文件中, 找到声明的这个property, 删掉;
3. 在整个project 中,搜索这个 property, 待IBOutlet 重写声明后,替换之前的 property;
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
- ... 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 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
- 模版匹配应用
- hdu(5422)——Rikka with Graph
- 一起talk C栗子吧(第四十六回:C语言实例--广度优先遍历)
- 扯下中国院士的神秘面纱(二):欺世盗名的院士
- 机房收费系统之数据类型&除法运算符
- setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key解决办法
- 图像缩放算法及速度优化——(一)最近邻插值
- 谈谈如何训练一个性能不错的深度神经网络
- ApexSQL Log-SQL误操作恢复工具
- MySQL 命令环境变量设置方法
- 后台处理细节
- 【JS】javascript 小技巧
- js跨域请求简单例子
- java线程池