...nib but the view outlet was not set.'

错误提示:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "XXXViewController" nib but the view outlet was not set.'

错误所在:nib but the view outlet was not set.'

解决方法:如图

...nib but the view outlet was not set.'_第1张图片
Paste_Image.png

你可能感兴趣的:(...nib but the view outlet was not set.')