'-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "AttentionController" nib but the view outlet was not set.'

 问题出现原因:

  先创建控制器的.h与.m文件,后来创建了相应的xib文件,运行后出现这个问题。

解决办法:

原文地址:https://www.cnblogs.com/yintingting/p/4541624.html