Last active
December 17, 2015 14:59
-
-
Save ryanmcgrath/5628362 to your computer and use it in GitHub Desktop.
Example for Rane.
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 *)application | |
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | |
self.window.backgroundColor = [UIColor whiteColor]; | |
UIViewController *rootViewController = [[MyUIViewControllerSubclass alloc] init]; | |
UINavigationController *navController = [[UINavigationController alloc] | |
initWithRootViewController:rootViewController]; | |
// The rootViewController becomes aware of what stack it's in - e.g, it can then do... | |
// self.navigationController pushViewController:myNewViewControllerInstance animated:YES]; | |
self.window.rootViewController = navController; | |
[self.window makeKeyAndVisible]; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment