1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Storyboardで、ボタンをクリックせずに、別の画面に遷移させたい時

Last updated at Posted at 2012-07-02

resultViewControllerはボタンを押さずにページを遷移させたい。

  • まず、NavigationControllerに独立した、resultViewControllerをつなげる。

  • つぎにResultViewControllerのIdentifierに、resultViewController、クラスにResultViewControllerを作成する。

  • あとは以下のコードを書けばok.


    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil]; 

    ResultViewController *rvc = [self.storyboard instantiateViewControllerWithIdentifier:@"resultViewController"];

    [self.navigationController pushViewController:rvc animated:YES];

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?