# HG changeset patch # User antonc27 # Date 1439466110 -7200 # Node ID 6a0bd9c6cc82d058245abf55f64a646a42ea33ea # Parent 6382679643e4ea85d3a29cb991192be64d806c13 - Fix for main view orientation problems diff -r 6382679643e4 -r 6a0bd9c6cc82 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];