我想用iPhone版本替换iPad应用程序的.xib文件,所以我创建了一个xib文件并排列了所有IBOutlet对象,然后我设置了文件的所有者,但它仍然是这样的:
'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginVC" nib but the view outlet was not set.'
所以我错过了什么?问题可能在哪里?感谢任何善意的建议。
答案 0 :(得分:0)
阅读这篇文章:Loaded nib but the view outlet was not set - new to InterfaceBuilder
您忘记执行此步骤:You should see "outlets" with "view" under it. Drag the circle next to it over to the "view" icon on the left bar (bottom one, looks like a white square with a thick gray outline
希望这可以帮助你...