码迷,mamicode.com
首页 > 其他好文 > 详细

loaded the "XXXView" nib but the view outlet was not set 解决方案

时间:2017-07-25 12:32:13      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:role   tle   分享   load   strong   rom   str   技术   http   

‘-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXXView" 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", 里面有个默认的IBOutlet变量view, 看一下后面有没有做关联,如果没有就拉到下面的View和视图做个关联

 

技术分享

 

loaded the "XXXView" nib but the view outlet was not set 解决方案

标签:role   tle   分享   load   strong   rom   str   技术   http   

原文地址:http://www.cnblogs.com/mnstar/p/7233329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!