project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
branchios-revival
changeset 11114 6a0bd9c6cc82
parent 11105 379226b854ae
child 11309 402baa6d4f64
--- a/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Thu Aug 13 13:40:12 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m	Thu Aug 13 13:41:50 2015 +0200
@@ -60,7 +60,7 @@
 
     NSString *controllerName = (IS_IPAD() ? @"MainMenuViewController-iPad" : @"MainMenuViewController-iPhone");
     self.mainViewController = [[MainMenuViewController alloc] initWithNibName:controllerName bundle:nil];
-    [self.uiwindow addSubview:self.mainViewController.view];
+    self.uiwindow.rootViewController = self.mainViewController;
     [self.mainViewController release];
 
     [self.uiwindow makeKeyAndVisible];