loaded the "ViewController" nib but the view outlet was not set. 处理方式

报错:

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

原因是:

加载了一个ViewController视图,但是没有将相应的xib文件的View和Controller的View进行连接

Blog都是随笔,只当做笔记,不会有详细介绍,测试请慎重。。。
原文地址:https://www.cnblogs.com/JerryBaxia/p/4791470.html