Created
May 19, 2014 16:27
-
-
Save kirang89/ac7aa09dfd9cd6d73a35 to your computer and use it in GitHub Desktop.
Init snippet for setting the root view controller
This file contains hidden or 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 *)applicationdidFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ | |
self.viewController = [[ViewController alloc] initWithNibName:nil | |
bundle:nil]; | |
self.window = [[UIWindow alloc] | |
initWithFrame:[[UIScreen mainScreen] bounds]]; | |
/* Make our view controller the root view controller */ | |
self.window.rootViewController = self.viewController; | |
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