Skip to content
This repository has been archived by the owner on Jun 5, 2018. It is now read-only.

Commit

Permalink
Fixing "Application windows are expected to have a root view
Browse files Browse the repository at this point in the history
controller at the end of application launch" warning.
  • Loading branch information
gabriel committed Sep 27, 2012
1 parent f5b2f4a commit 8c51600
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes-iOS/GHUnitIOSAppDelegate.m
Expand Up @@ -51,6 +51,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application {
navigationController_ = [[UINavigationController alloc] initWithRootViewController:viewController]; navigationController_ = [[UINavigationController alloc] initWithRootViewController:viewController];
CGSize size = [[UIScreen mainScreen] bounds].size; CGSize size = [[UIScreen mainScreen] bounds].size;
window_ = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)]; window_ = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)];
window_.rootViewController = navigationController_;
[window_ addSubview:navigationController_.view]; [window_ addSubview:navigationController_.view];
[window_ makeKeyAndVisible]; [window_ makeKeyAndVisible];


Expand Down

0 comments on commit 8c51600

Please sign in to comment.