Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created December 17, 2012 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save romyilano/4314581 to your computer and use it in GitHub Desktop.
Save romyilano/4314581 to your computer and use it in GitHub Desktop.
Objective - C - How to launch a storyboard
-(IBAction)homeBtn:(id)sender
{
NSLog(@"Action Button Pressed");
[self.view removeFromSuperview];
UIStoryboard *settingsStoryboard = [UIStoryboard storyboardWithName:@"BentoRock" bundle:nil];
UIViewController *initialSettingsVC = [settingsStoryboard instantiateInitialViewController];
// i'm going to load this view controller modally
initialSettingsVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
[self presentViewController:initialSettingsVC
animated:YES
completion:nil];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment