瀏覽代碼

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) {