Created
March 24, 2014 04:29
-
-
Save ctku/9734185 to your computer and use it in GitHub Desktop.
How to instantiate a storyboard with initial viewController.
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// override point for customization after application launch | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil]; | |
self.window.rootViewController = [sb instantiateInitialViewController]; | |
[self.window makeKeyAndVisible]; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment