Marino Faggiana 7 жил өмнө
parent
commit
b1f5c5ccf5

+ 2 - 2
iOSClient/Main/CCSplit.m

@@ -77,8 +77,8 @@
 {
     [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
 
-    // iPhone +
-    if (self.traitCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact && ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone && UIScreen.mainScreen.nativeBounds.size.height == 2208)) {
+    // iPhone + (fallthrough res)
+    if (self.traitCollection.horizontalSizeClass == UIUserInterfaceSizeClassCompact && [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone && (UIScreen.mainScreen.nativeBounds.size.height == 2208 || UIScreen.mainScreen.nativeBounds.size.height == 1920)) {
     
         UITabBarController *tbc = self.viewControllers.firstObject;
         for (UINavigationController *nvc in tbc.viewControllers) {