Skip to content

Instantly share code, notes, and snippets.

@mmesarina
Created December 12, 2014 02:32
Show Gist options
  • Save mmesarina/80d457e2714790bb8533 to your computer and use it in GitHub Desktop.
Save mmesarina/80d457e2714790bb8533 to your computer and use it in GitHub Desktop.
TipCalculator AppDelegate loads ViewController from mainStoryboard
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
TipViewController *tipViewController = [storyboard instantiateInitialViewController];
//self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = tipViewController;
[self.window makeKeyAndVisible];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment