Browse files

Fixed root VC warning in demo app delegate

  • Loading branch information...
1 parent 22f0611 commit 1144c37e7c09e0a7a2965a64bad89392e2cf4f79 @odrobnik odrobnik committed Sep 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Demo/Source/CoreTextDemoAppDelegate.m
View
2 Demo/Source/CoreTextDemoAppDelegate.m
@@ -23,7 +23,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
_navigationController = [[UINavigationController alloc] initWithRootViewController:snippetsViewController];
// Display the window
- [_window addSubview:_navigationController.view];
+ _window.rootViewController = _navigationController;
[_window makeKeyAndVisible];
return YES;

0 comments on commit 1144c37

Please sign in to comment.