project_files/HedgewarsMobile/Classes/GameConfigViewController.m
branchios-revival
changeset 11215 51cc7ec00c2d
parent 11206 2e80c9861818
child 11221 4d8ab775bad3
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Fri Oct 16 17:34:06 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Sat Oct 17 00:32:02 2015 +0200
@@ -328,8 +328,6 @@
 
     [self updateiPadUIForInterfaceOrientation:toInterfaceOrientation];
 
-    [self.schemeWeaponConfigViewController willAnimateRotationToInterfaceOrientation:toInterfaceOrientation
-                                                                            duration:duration];
     if (self.helpPage)
     {
         self.helpPage.view.frame = self.view.frame;
@@ -374,6 +372,18 @@
     [super viewWillAppear:animated];
 }
 
+- (void)viewDidAppear:(BOOL)animated
+{
+    [super viewDidAppear:animated];
+
+    if (IS_IPAD())
+    {
+        // need to call this again in order to fix layout on iOS 9 when going back from rotated stats page
+        UIInterfaceOrientation currentOrientation = [[UIApplication sharedApplication] statusBarOrientation];
+        [self updateiPadUIForInterfaceOrientation:currentOrientation];
+    }
+}
+
 -(void) didReceiveMemoryWarning {
     self.imgContainer = nil;