【iOS】iOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
来源:互联网 发布:java高级流和低级流 编辑:程序博客网 时间:2024/06/08 16:13
具体异常信息:
SimpleTable3[29418:11303] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘-[UIViewController _loadViewFromNibNamed:bundle:] loaded the “SimpleTableViewController” nib but the view outlet was not set.’
libc++abi.dylib: terminate called throwing an exception
分析原因:
view的outlet输出口没有设置,也就是view视图没有和ViewController 视图控制器(或File’s Owner)建立连接。
如下图所示,这个连接关系在创建项目过程或者nib文件时,是默认建立这个连接关系的,只是有可能在开发过程中,不小心误操作,删除了这个连接关系。
如果上述view视图到视图控制器(File’s Owner)的输出口连接不存在了,可以按照下图重新建立到输出口outlet的连接,如图所示。
选择视图,在右侧的Connections Inspector 面板窗口,拖拉New Referencing Outlet右侧的图标到File’s Owner图标上,在弹出的上下文菜单中,选择view,就可以创建view视图对象到视图控制器的输出口outlet连接了。
其他参考链接:
iOS/Xcode异常:reason: -[NSDecimalNumber isEqualToString:]: unrecognized selector sent to instance
iOS/Xcode异常:unrecognized selector sent to instance 0x7fae23417410
iOS/Xcode异常:reason: ‘Could not instantiate class named NSLayoutConstraint’
iOS/Xcode异常:reason = “The model used to open the store is incompatible with the one used to create the store”
iOS/Xcode异常:对象数组NSMutableArray添加元素-addObject,但count方法仍然返回0?
- 【iOS】iOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
- 【iOSiOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
- iOS reason: loaded the "XXX.xib" nib but the view outlet was not set.'
- IOS loaded the "XXXXXView" nib but the view outlet was not set.' 解决办法
- iOS开发出现的错误:loaded the "VCRoot" nib but the view outlet was not set.'
- ios开发 loaded the "ViewController" nib but the view outlet was not set.'
- loaded the "***" nib but the view outlet was not set
- loaded the nib but the view outlet was not set
- loaded some nib but the view outlet was not set
- loaded the nib but view outlet was not set
- loaded some nib but the view outlet was not set
- loaded nib but the view outlet was not set
- xcode "nib but the view outlet was not set."错误
- xcode "nib but the view outlet was not set."错误
- xcode "nib but the view outlet was not set."错误
- xcode "nib but the view outlet was not set."错误
- iOS--错误集锦--load the "xx" nib but the view outlet was not set.
- loaded the "ViewControll" nib but theview outlet was not set
- Javascript 基础知识 - 操作符 - in
- Android多媒体(Media)入门
- 高精度运算之乘法
- c++中的vtordisp域
- 内存池设计与实现
- 【iOS】iOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
- 自动生成IPv6列表
- Dijstra的greedy简单实现
- (转)《Java虚拟机原理图解》1.4 class文件中的字段表集合--field字段在class文件中是怎样组织的
- Java多线程(十)localthread
- 【iOS】UIImageView点击是现实高亮图,放手时现实默认图
- effective C++ 读书笔记 条款12
- 程序员到三十岁之后需要转行或者转管理吗
- Stanford