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];

No comments:

Post a Comment