2つのxibファイルがあります。「ViewController.xib」から始めて、ユーザーがボタンをクリックすると、「GamePage.xib」という名前の別のxibファイルが読み込まれます。
ボタンのコードは次のとおりです。
-(IBAction)startButtonClicked{
UIViewController *gamePage = [[UIViewController alloc] initWithNibName:@"GamePage" bundle:nil];
[self presentViewController:gamePage animated:NO completion:nil];
}
ボタンをクリックすると、2番目のxibが画面に表示されますが、その「viewDidLoad」メソッドは実行されません…</ p>
何故ですか?