タブベースのアプリがあり、一部はすべての人が利用できますが、アクセスするにはユーザーを登録する必要があるため、UIViewからLoginに変更したいと思います。
ログインビューは、MainStoryboardの最初のタブに割り当てられます
今、私は別のタブ、別のセクション(すでに.xibファイルがあります)にいて、「ログイン」ビューを表示したいと思います。
Login *aLogin = [[Login alloc] initWithNibName:@"LOGIN" bundle:nil];
[self presentModalViewController:aLogin animated:YES];
しかし、LOGINxibが存在しないためにクラッシュします。
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle:
「ログイン」uiviewをロードするにはどうすればよいですか?
ありがとう!