我正在为我的应用程序的LaunchImage使用images.xcassets,某些类型的iPad正在启动时显示iPhone图像或AppIcon图像,而不是指定的iPad图像。
以下是我的应用图标和启动图像设置的屏幕截图
以下是我的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 7@2x.png",
"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 :(得分:-1)
使用启动故事板并设置相应的图像并将图像宽高比从中心对齐。