Skip to content

Instantly share code, notes, and snippets.

@ryanmcgrath
Last active December 17, 2015 14:59
Show Gist options
  • Save ryanmcgrath/5628362 to your computer and use it in GitHub Desktop.
Save ryanmcgrath/5628362 to your computer and use it in GitHub Desktop.
Example for Rane.
- (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