Skip to content

Instantly share code, notes, and snippets.

@mmesarina
Created October 17, 2014 02:31
Show Gist options
  • Save mmesarina/5af2c0f5d6e316aebdab to your computer and use it in GitHub Desktop.
Save mmesarina/5af2c0f5d6e316aebdab to your computer and use it in GitHub Desktop.
AppDelegate bootstrapping rootViewController
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
TestViewController *vc = [[TestViewController alloc] init];
UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
self.window.rootViewController = nvc;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment