Last active
August 29, 2015 14:16
-
-
Save jungchris/7d0b2b41a171dfccb5ca to your computer and use it in GitHub Desktop.
Initiate Storyboard Programmatically
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
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
if (!application.keyWindow.rootViewController) | |
{ | |
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil]; | |
UIViewController *myViewController= [storyboard instantiateViewControllerWithIdentifier:@"myViewController identifier"]; | |
application.keyWindow.rootViewController = myViewController; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment