'-[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和视图做个关联

 

原文地址;http://blog.sina.com.cn/s/blog_8f38d3410101a1rb.html

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-06-30
  • 2022-02-19
  • 2021-05-25
猜你喜欢
  • 2021-08-13
  • 2021-07-26
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-11-17
相关资源
相似解决方案