Parcourir la source

viewWillTransitionToSize remove ButtonPlus

Marino Faggiana il y a 8 ans
Parent
commit
1e366a4cb8
1 fichiers modifiés avec 0 ajouts et 5 suppressions
  1. 0 5
      iOSClient/Main/CCSplit.m

+ 0 - 5
iOSClient/Main/CCSplit.m

@@ -73,8 +73,6 @@
 
 - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator
 {
-    BOOL buttonPlus = [app plusButton:false];
-    
     [coordinator animateAlongsideTransition:nil completion:^(id<UIViewControllerTransitionCoordinatorContext> context) {
         
         if (self.view.frame.size.width == ([[UIScreen mainScreen] bounds].size.width*([[UIScreen mainScreen] bounds].size.width<[[UIScreen mainScreen] bounds].size.height))+([[UIScreen mainScreen] bounds].size.height*([[UIScreen mainScreen] bounds].size.width>[[UIScreen mainScreen] bounds].size.height))) {
@@ -85,9 +83,6 @@
             
             // Landscape
         }
-        
-        if (buttonPlus)
-            [app plusButton:true];
     }];
     
     [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];