pushでの画面遷移の直前にあるプロパティを設定したくて,コード上でpushを実装したいというとき たいていのサイトでは下のやり方が紹介されていた. ちなみにここではGameViewControllerというのが遷移先. GameViewController *gameViewController =[[GameViewController alloc] initWithNibName:@"GameViewController" bundle:nil]; [self.navigationController pushViewController:gameViewController animated:YES]; が,これだと何をどう頑張ってもエラーが発生する. 以下のようにするとうまくいった. GameViewController *gameViewController = [sel