0

iPad アプリの .xib ファイルを iPhone バージョンに置き換えたかったので、xib ファイルを作成し、すべての IBOutlet オブジェクトを並べてから、ファイルの所有者を設定しましたが、それでも次のようになりました。

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

だから私は何かを逃しましたか?問題はどこにあるのでしょうか?親切なアドバイスに感謝します.

4

1 に答える 1

0

この投稿を読んでください:ロードされたペン先ですが、ビュー アウトレットが設定されていません - 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 に答える