Created
December 17, 2012 00:27
-
-
Save romyilano/4314581 to your computer and use it in GitHub Desktop.
Objective - C - How to launch a storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(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