私はiPhoneアプリケーションでビューを切り替えようとしていますが、ボタンをクリックして2番目のビューを表示すると、空白の画面が表示されます。ボタンとそれ以外のものが表示されます。ビューが正しく切り替わらない
私のストーリーボードファイルの2番目のViewControllerをチェックしました。そのカスタムクラスは、最初の2番目のViewControllerクラスを作成したときにすぐに削除された新しいインターフェイスファイルが付属していました。何が間違っているのでしょうか?
- (IBAction)Transition_NEXT:(id)sender
{
nextViewController = [[NextViewController alloc]
initWithNibName:@"NextViewController"
bundle:[NSBundle mainBundle]];
[self presentModalViewController:nextViewController animated:NO];
}
ビューを切り替えるためのコードを投稿してください。 –
- (IBAction)Transition_NEXT:(id)送信者 { nextViewController = [[NextViewController alloc] initWithNibName:@ "NextViewController" バンドル:[NSBundle mainBundle]]; [self presentModalViewController:nextViewController animated:NO]; } –