NSScanner: nil string argument
2015-09-14 21:26
369 查看
麻痹 擦点没恶心死我。 问题很明显,但是太难定位了。
static NSString *CellIdentifier =@"NoticeCell";
与sb中cell的Identifier不符
这个错误的原因已知2个
1;str=nil
2:xib sb中输出口出问题
处理完记得clan
3:
self. window .rootViewController=nil;
将Xcode6.4升级至 Xcode7.0后,原正常代码报错。
错误原因在于 AppDelegate 中 didFinishLaunchingWithOptions 未定义 rootViewController
定义一个空UIViewController即可,添加如下代码解决:
UIViewController *emptyView = [[ UIViewController alloc ]init ];
self. window .rootViewController = emptyView;
有没有中招被坑的,哇哈哈 赶紧感谢我吧!
static NSString *CellIdentifier =@"NoticeCell";
与sb中cell的Identifier不符
这个错误的原因已知2个
1;str=nil
2:xib sb中输出口出问题
处理完记得clan
3:
self. window .rootViewController=nil;
将Xcode6.4升级至 Xcode7.0后,原正常代码报错。
错误原因在于 AppDelegate 中 didFinishLaunchingWithOptions 未定义 rootViewController
定义一个空UIViewController即可,添加如下代码解决:
UIViewController *emptyView = [[ UIViewController alloc ]init ];
self. window .rootViewController = emptyView;
有没有中招被坑的,哇哈哈 赶紧感谢我吧!
相关文章推荐
- Exbox上的相关链接
- Python+OpenCV学习(12)---特征匹配
- 用两个栈实现队列(剑指offer)
- hdu 2795 线段树
- 前端开发面试要点及对策
- 分布式消息队列,两种常规方案
- (4.4.12)Android开发:如何实现TCP和UDP传输
- UI 第六节 uisegmentedControl uiimage uislider 课后习题
- 自定义MITK PlanarFigure及困惑
- URLConnection/Android Stutio中HttpClient的添加jar包方法和DoGet、DoPost的用法
- 一些摄像机标定的Matlab工具箱(含Kinect和激光)
- C实现面向对象
- mybatis调用存储过程
- Effective Java 英文 第二版 读书笔记 Item 6:Eliminate obsolete object references
- SPOJ FFT TSUM
- 数据库的配置
- Hibernate注释大全收藏
- JNI初体验
- 轮式驱动单元电机PID控制说明
- 研究生选导师失败经历