Pages

Showing posts with label Storyboard. Show all posts
Showing posts with label Storyboard. Show all posts

Sunday, July 28, 2013

Communicate with multiple storyboard in xcode

Suppose we have created a storyboard "GameScreen.storyboard" and linked that Storyboard to its ViewController named "GameScreenVC".

1. Now write this code on the events required.

    UIStoryboard *gameScreen = [UIStoryboard storyboardWithName:@"GameScreen" bundle:nil];
      UIViewController *gameScreenVC = [gameScreen instantiateInitialViewController];
gameScreenVC.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;//This is the Animation part

      [self presentViewController:gameScreenVC animated:YES completion:nil];