xcode 8 的一个坑: UIDeviceRGBColor length]: unrecognized selector
来源:互联网 发布:淘宝白搜是什么 编辑:程序博客网 时间:2024/06/10 16:44
作者:Love@YR
链接:http://blog.csdn.net/jingqiu880905/article/details/52798619
请尊重原创,谢谢!
今天在xcode8下运行到
NSArray * array = [bundle loadNibNamed:@"TodayCell" owner:self options:nil];
这行代码时总是崩溃说[UIDeviceRGBColor length]: unrecognized selector。
此cell内容只是包含了几个label,百思不得其解。但是发现自己那个cell的contentview里的label背景都是透明色,一旦有个改了是有颜色的,再运行就不崩。无奈需求是必须无色,不能这么改。
后来终于找到解决方案:http://stackoverflow.com/questions/37852992/ios-10-beta-sdk-uidevicergbcolor-countbyenumeratingwithstateobjectscount
就是把xib文件设置成build for ios7 and later,原来是unknow ios version。
也不知道为啥。
0 0
- xcode 8 的一个坑: UIDeviceRGBColor length]: unrecognized selector
- [UIDeviceRGBColor length]: unrecognized selector sent to instance
- [UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance
- [UIDeviceRGBColor copyWithZone:]: unrecognized selector sent to instance
- - [UIDeviceRGBColor countByEnumeratingWithState:objects:count:]: unrecognized selector
- Xcode:[__NSCFNumber length]: unrecognized selector sent to instance崩溃解决
- 关于[NSNull length]: unrecognized selector sent to instance的问题
- 【Xcode】-[__NSArrayI addObjectsFromArray:]: unrecognized selector
- Xcode的报错崩溃 - unrecognized selector sent to instance
- [__NSCFNumber length]: unrecognized selector sent to instance
- [__NSCFNumber length]: unrecognized selector sent to instance
- -[__NSCFNumber length]: unrecognized selector sent to instance
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
- xcode object-c unrecognized selector错误解析
- 提供一个解决unrecognized selector错误的宏定义,所有类都不会触发unrecognized selector错误 —
- CUDA学习笔记
- 微信分享,图标背景黑色问题解决
- 定义人员范围
- C++智能指针简单剖析
- java/jsp 生成随机字符串(生成一个32位字节的字母和数字大小写混合的随机字符串!)
- xcode 8 的一个坑: UIDeviceRGBColor length]: unrecognized selector
- Android之自定义圆形渐变、条形进度条
- redisclient鏈接失敗,提示redis服務器版本太低,解決方法
- unity-Behavior Designer行为树插件
- Python3实现TCP端口扫描器
- NSPredicate
- C与C++之引用与指针
- Android中IPC机制之(二)
- @Scheduled 使用