2017-09-13 81 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

我不确定如何使用故事板为不同设备设置多个图像。你能为我指出正确的方向吗? –