抛出异常:
uncaught exception 'NSInternalInconsistencyException'
nib but the view outlet was not set.'
解决方案:
1. 点击我们要加载的 xib 文件
2. 在右边选中 File's Owner
3. 在 File's Owner 的 选项卡的“Custom Class” 属性设置中,将 Class 的值改成对应的 VC, 这里改成 UIViewController,
4. 这时候,在File's Owner 的 选项卡中, 就 会出现“待连接设置” 的 view 属性, 也即我们的编译器 告诉我们的 the view outlet was not set 中的 view。当 File's Owner 的 class 为 NSObject 时候,是没有 view 属性的。
连接 view 属性,