NSInternalInconsistencyException: loaded the "XXXView" nib but the view outlet was not set

运行过程中App崩溃,报错如标题。

原因:

viewController的view没有绑定xib的view。

解决方法:

在File's Owner中将view与viewController的view绑定。

原文地址:https://www.cnblogs.com/argenbarbie/p/5849130.html