xcode "nib but the view outlet was not set."错误
来源:互联网 发布:php在线视频网站源码 编辑:程序博客网 时间:2024/06/06 04:58
不小心把view和file‘s owner的绑定解除了,于是编译报错。度娘了一下,发现了这个文章,才回想起刚才的操作。
原帖:http://blog.csdn.net/startexcel/article/details/7211292
xib 中, 没有对File's Owner 的Outlets view 进行绑定, 导致在父视图中插入子视图时出错, 在IB中拖拽Files' Owner到view, 添加绑定后, 运行成功!
总结一下创建视图和绑定的步骤:1. 创建控制器. File->New File->Iphone OS->Cocoa Touch Class->UIViewController subclass;
2. 创建xib. File->New File->Iphone OS->User Interface->View XIB
3. 绑定controller和view. 用Interface Builder打开xxx.xib, 点击Files' Owner, 在Identity Inspector里面的Class Identity, 选择Step 1创建的控制器类, 接着拖拽File's Owner到View中, 选择Outlets->view.先选中file's owner(这个很重要)
0 0
- 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."错误
- loaded the "***" nib but the view outlet was not set
- loaded the nib but the view outlet was not set
- 【iOSiOS/Xcode异常:reason:loaded the “SimpleTableViewController” nib but the view outlet was not set
- 【iOS】iOS/Xcode异常:reason:loaded the “SimpleTableViewController” 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
- 抛出nib but the view outlet was not set
- nib but the view outlet was not set.
- loaded some nib but the view outlet was not set
- loaded nib but the view outlet was not set
- Bug:"XXXView" nib but the view outlet was not set
- iPhone 自检工程错误解决方法:loaded the "MyView" nib but the view outlet was not set
- loaded the "BlueView" nib but the view outlet was not set 错误的解决办法。
- loaded the "MyView" nib but the view outlet was not set错误
- 爱思助手(I4)可能造成iphone4的IOS7.0.4内置程序丢失
- 浅谈Java中的几种随机数
- websphere和db2和IBM MQ的搭建过程
- C++中怎么把一个十进制数的某一个二进制位改为0
- DESTOON 发布信息,非法关键词,提示代码
- xcode "nib but the view outlet was not set."错误
- struts2点击action请求url重复命名空间
- xTuple中数据库的备份语句
- 值对象(cocoaChina)
- Python模块学习 ---- time 日期时间处理
- synchronized块
- sqlserver日期格式化函数
- HTML5自学手册--HTML5 Canvas(7)
- jQuery 获取屏幕高度、宽度