Skip to content

Instantly share code, notes, and snippets.

@ctku
Created March 24, 2014 04:29
Show Gist options
  • Save ctku/9734185 to your computer and use it in GitHub Desktop.
Save ctku/9734185 to your computer and use it in GitHub Desktop.
How to instantiate a storyboard with initial viewController.
- (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