Skip to content

Commit

Permalink
Merge pull request #2195 from Augustyniak/bug-fix/set-root-view-contr…
Browse files Browse the repository at this point in the history
…oller-of-the-main-window-before-application-did-finish-launching-with-options-finishes

Set root view controller of the main window
  • Loading branch information
BradLarson committed Apr 3, 2016
2 parents 7f7f8d7 + 8124a95 commit 98eb4fe
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];

colorTrackingViewController = [[ColorTrackingViewController alloc] initWithNibName:nil bundle:nil];
[self.window addSubview:colorTrackingViewController.view];
self.window.rootViewController = [[ColorTrackingViewController alloc] initWithNibName:nil bundle:nil];

[self.window makeKeyAndVisible];
return YES;
Expand Down

0 comments on commit 98eb4fe

Please sign in to comment.