0

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

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

所以我错过了什么?问题可能出在哪里?感谢您的任何建议。

4

1 回答 1

0

阅读这篇文章:Loaded nib but the view outlet was not set - 新的 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

希望这可以帮助你...

于 2013-05-27T03:07:36.630 回答