Browse Source

fix ios 9 title

Marino Faggiana 6 years ago
parent
commit
f1fd0697fa
1 changed files with 5 additions and 1 deletions
  1. 5 1
      iOSClient/Main/CCMain.m

+ 5 - 1
iOSClient/Main/CCMain.m

@@ -558,7 +558,11 @@
 
 
             _imageTitleHome = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 60, 30)]; // IMAGE = 120 x 60
             _imageTitleHome = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 60, 30)]; // IMAGE = 120 x 60
             _imageTitleHome.contentMode = UIViewContentModeScaleAspectFill;
             _imageTitleHome.contentMode = UIViewContentModeScaleAspectFill;
-            _imageTitleHome.translatesAutoresizingMaskIntoConstraints = NO;
+            if ([[[UIDevice currentDevice] systemVersion] floatValue] < 10.0) {
+                _imageTitleHome.translatesAutoresizingMaskIntoConstraints = YES;
+            } else {
+                _imageTitleHome.translatesAutoresizingMaskIntoConstraints = NO;
+            }
             _imageTitleHome.image = image;
             _imageTitleHome.image = image;
             
             
             // backbutton
             // backbutton