loaded the "BlueView" nib but the view outlet was not set 错误的解决办法

来源:互联网 发布:excel防止数据粘贴 编辑:程序博客网 时间:2024/05/29 17:47
[UIViewController _loadViewFromNibNamed:bundle:] loaded the "BlueView" nib but the view outlet was not set. 
查书才知道,没有做nib文件到xxxViewControler程序的关联,特此记录下来: 
1, 打开nib文件 
2, 点击"File's Owner", 按command+4,设置Class为xxxViewControler 
3, 按Control+"Files's Owner"或选中File‘s Owner,点右键, 里面有个默认的IBOutlet变量view, 看一下后面有没有做关联,如果没有就拉到下面的View和视图做个关联
0 0
原创粉丝点击