タグ

ブックマーク / shinen1.wordpress.com (1)

  • [Objective-C] コード上でのstoryboardのpush処理 « Sweden::erasmusLife

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

  • 1