Skip to content

Commit

Permalink
Setting root view controller of the main window before `application:d…
Browse files Browse the repository at this point in the history
…idFinishLaunchingWithOptions:` method finishes
  • Loading branch information
Augustyniak committed Jan 30, 2016
1 parent 54d69e0 commit 8124a95
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 8124a95

Please sign in to comment.