将.xib文件替换为另一个文件



我想将iPad应用程序的.xib文件替换为iPhone版本,所以我创建了一个xib文件,并将所有IBOutlet对象排成一行,然后设置文件的所有者,但它仍然是这样的:

'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "LoginVC" nib but the view outlet was not set.'

我错过了什么吗?问题出在哪里?谢谢你的建议。

阅读本文:加载了nib,但没有设置视图出口- 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

相关内容

最新更新