iOS开发- setValue:forUndefinedKey:]: this class is not key value coding-comp
来源:互联网 发布:网络推广的计划方案 编辑:程序博客网 时间:2024/06/06 02:29
我们有时候在 使用 storyboard,会遇到以下的情况
运行程序时崩溃:控制台打印:
'NSUnknownKeyException', reason: '[<ViewController 0x7fa610e91180> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key button.'
这是一个新手容易犯的错误,是由于 在 storyboard拖拽到 controller类之后,修改了,IBOut
@interfaceViewController ()@property (strong,nonatomic)IBOutletUIButton *button222; //通过storyboard拖拽时生成button,但是自己后来修改为button222,导致了崩溃@end
解决办法:找到 相应的控件,(右键查看,outlet)删除 (出现黄色感叹号的[一般] )对应的控件的 OutLet即可,
如果没有找到该控件,可以直接查看 ViewController的 输出链接(inspector 最后一个)
原文地址:http://blog.csdn.net/yangbingbinga
0 0
- iOS开发- setValue:forUndefinedKey:]: this class is not key value coding-comp
- 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 问题
- iOS 报错 setValue:forUndefinedKey:]: this class is not key value coding
- 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
- 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.'
- 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
- mysql各版本(任意版本)FTP下载地址(安装版,绿色版,Connector等等)
- 如何等待页面元素加载完成
- xcode的ios工程目录结构
- 第 六 章 图
- 第10周 项目1 拓展题目2
- iOS开发- setValue:forUndefinedKey:]: this class is not key value coding-comp
- ARC-MRC下的单例宏
- mysql5.5.15安装
- 推送通知
- 导入oracle数据库
- JAVA中的“抽象接口”
- MySQL JDBC驱动 - Class.forName和java.sql.DriverManager.registerDriver(new Driver())的区别
- java接口
- Android之shape与selector实现圆角