- Fix for main view orientation problems ios-revival
authorantonc27 <antonc27@mail.ru>
Thu, 13 Aug 2015 13:41:50 +0200
branchios-revival
changeset 11114 6a0bd9c6cc82
parent 11113 6382679643e4
child 11115 3729ac42189b
- Fix for main view orientation problems
project_files/HedgewarsMobile/Classes/HedgewarsAppDelegate.m
--- 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];