2017-09-13 53 views
0

我正在爲我的應用程序的LaunchImage使用images.xcassets,某些類型的iPad在啓動時顯示iPhone圖像或AppIcon圖像,而不是指定的iPad圖像。LaunchImage無法正確處理某些iPad

Ipad 5th Generation 10.3 simulator

這裏是我的應用程序圖標的屏幕截圖和啓動圖像的設置

enter image description here

下面是我的xcassets文件Contents.json代碼:

{ 
    "images" : [ 
    { 
     "extent" : "full-screen", 
     "idiom" : "iphone", 
     "subtype" : "736h", 
     "filename" : "ios_launch 7 plus.png", 
     "minimum-system-version" : "8.0", 
     "orientation" : "portrait", 
     "scale" : "3x" 
    }, 
    { 
     "extent" : "full-screen", 
     "idiom" : "iphone", 
     "subtype" : "667h", 
     "filename" : "ios_launch [email protected]", 
     "minimum-system-version" : "8.0", 
     "orientation" : "portrait", 
     "scale" : "2x" 
    }, 
    { 
     "orientation" : "portrait", 
     "idiom" : "iphone", 
     "filename" : "ios_launch se-1.png", 
     "extent" : "full-screen", 
     "minimum-system-version" : "7.0", 
     "scale" : "2x" 
    }, 
    { 
     "extent" : "full-screen", 
     "idiom" : "iphone", 
     "subtype" : "retina4", 
     "filename" : "ios_launch se.png", 
     "minimum-system-version" : "7.0", 
     "orientation" : "portrait", 
     "scale" : "2x" 
    }, 
    { 
     "orientation" : "portrait", 
     "idiom" : "ipad", 
     "filename" : "ios_launch ipad.png", 
     "extent" : "full-screen", 
     "minimum-system-version" : "7.0", 
     "scale" : "1x" 
    }, 
    { 
     "orientation" : "portrait", 
     "idiom" : "ipad", 
     "filename" : "ios_launch ipad pro.png", 
     "extent" : "full-screen", 
     "minimum-system-version" : "7.0", 
     "scale" : "2x" 
    } 
    ], 
    "info" : { 
    "version" : 1, 
    "author" : "xcode" 
    } 
} 

我不確定爲什麼會發生這種情況。這在iPad Air上不會發生。我能找到的幫助文件非常少。感謝任何幫助,我可以得到。

回答

0

使用啓動故事板並設置各自的圖像,並從中心對齊圖像寬高比。

+0

我不確定如何使用故事板爲不同設備設置多個圖像。你能爲我指出正確的方向嗎? –