Преглед на файлове

Add iPad landscape launch image (#2473)

Adam Wilson преди 6 години
родител
ревизия
01ba0f8451
променени са 1 файла, в които са добавени 20 реда и са изтрити 17 реда
  1. 20
    17
      ios/RCCManager.m

+ 20
- 17
ios/RCCManager.m Целия файл

@@ -243,23 +243,26 @@
243 243
     
244 244
     //xcassets LaunchImage files
245 245
     UIImage *image = [UIImage imageNamed:imageName];
246
-    if (image == nil) {
247
-        imageName = @"LaunchImage";
248
-        
249
-        if (screenHeight == 480)
250
-            imageName = [imageName stringByAppendingString:@"-700"];
251
-        if (screenHeight == 568)
252
-            imageName = [imageName stringByAppendingString:@"-700-568h"];
253
-        else if (screenHeight == 667)
254
-            imageName = [imageName stringByAppendingString:@"-800-667h"];
255
-        else if (screenHeight == 736)
256
-            imageName = [imageName stringByAppendingString:@"-800-Portrait-736h"];
257
-        else if (screenHeight == 812)
258
-            imageName = [imageName stringByAppendingString:@"-1100-Portrait-2436h"];
259
-        else if (screenHeight == 1024)
260
-            imageName = [imageName stringByAppendingString:@"-Portrait"];
261
-        
262
-        image = [UIImage imageNamed:imageName];
246
+    if (image == nil)
247
+    {
248
+      imageName = @"LaunchImage";
249
+      
250
+      if (screenHeight == 480)
251
+        imageName = [imageName stringByAppendingString:@"-700"];
252
+      if (screenHeight == 568)
253
+        imageName = [imageName stringByAppendingString:@"-700-568h"];
254
+      else if (screenHeight == 667)
255
+        imageName = [imageName stringByAppendingString:@"-800-667h"];
256
+      else if (screenHeight == 736)
257
+        imageName = [imageName stringByAppendingString:@"-800-Portrait-736h"];
258
+      else if (screenHeight == 768)
259
+        imageName = [imageName stringByAppendingString:@"-Landscape"]; 
260
+      else if (screenHeight == 812)
261
+        imageName = [imageName stringByAppendingString:@"-1100-Portrait-2436h"];
262
+      else if (screenHeight == 1024)
263
+        imageName = [imageName stringByAppendingString:@"-Portrait"];
264
+
265
+      image = [UIImage imageNamed:imageName];
263 266
     }
264 267
     
265 268
     if (image == nil) {