소스 검색

clear code

Marino Faggiana 6 년 전
부모
커밋
ca99cf2bb5
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      iOSClient/Main/CCMain.m

+ 3 - 2
iOSClient/Main/CCMain.m

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