loaded the "*****" nib but the view outlet was not set 錯誤的解決辦法。
在Xcode下不用Storyboard做一些試驗時,總是提示:loaded the "*****" nib but the view outlet was not set
網上搜索了一下,發現是nib文件沒有跟xxxViewControler關聯導致的.
1, 打開nib文件
2, 點擊"File's Owner", 按command+4,設置Class為xxxViewControler
3, 按Control+"Files's Owner", 里面有個默認的IBOutlet變量view, 看一下后面有沒有做關聯,如果沒有就拉到下面的View和視圖做個關聯
如下圖,是增加關聯后可以看到的,一定要有view 那個關聯。
