iPhone 6S plus和iPhone 7 plus中的启动图像问题

时间:2016-11-10 11:52:05

标签: ios iphone xcode launchimage

我对Xcode很新。我有我的应用程序的启动屏幕的某些图像。我使用拖放功能将它们添加到图标(Images.xassets - > LaunchImage)。

除iPhone 6s plus和iPhone 7 plus外,所有设备均可正常使用。

我的contents.json文件看起来像这样

{

 "images" : [
{
  "orientation" : "portrait",
  "idiom" : "iphone",
  "extent" : "full-screen",
  "scale" : "1x"
},
{
  "orientation" : "portrait",
  "idiom" : "iphone",
  "filename" : "iOS_portrait_640x1136.png",
  "extent" : "full-screen",
  "scale" : "2x"
},
{
  "orientation" : "portrait",
  "idiom" : "iphone",
  "filename" : "iOS_portrait_640x1136-1.png",
  "extent" : "full-screen",
  "subtype" : "retina4",
  "scale" : "2x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_750x1334.png",
  "extent" : "to-status-bar",
  "scale" : "1x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_750x1334-1.png",
  "extent" : "full-screen",
  "scale" : "1x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_1136x640.png",
  "extent" : "to-status-bar",
  "scale" : "1x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_1136x640-1.png",
  "extent" : "full-screen",
  "scale" : "1x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_1536x2048.png",
  "extent" : "to-status-bar",
  "scale" : "2x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_1536x2048-1.png",
  "extent" : "full-screen",
  "scale" : "2x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_2048x1536-2.png",
  "extent" : "to-status-bar",
  "scale" : "2x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_2048x1536-3.png",
  "extent" : "full-screen",
  "scale" : "2x"
},
{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "736h",
  "filename" : "iOS_portrait_1080x1920.png",
  "minimum-system-version" : "8.0",
  "orientation" : "portrait",
  "scale" : "3x"
},
{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "736h",
  "filename" : "iOS_landscape_2048x1536-1.png",
  "minimum-system-version" : "8.0",
  "orientation" : "landscape",
  "scale" : "3x"
},
{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "667h",
  "filename" : "iOS_portrait_750x1334-2.png",
  "minimum-system-version" : "8.0",
  "orientation" : "portrait",
  "scale" : "2x"
},
{
  "orientation" : "portrait",
  "idiom" : "iphone",
  "extent" : "full-screen",
  "minimum-system-version" : "7.0",
  "scale" : "2x"
},
{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "retina4",
  "filename" : "iOS_portrait_640x1136-2.png",
  "minimum-system-version" : "7.0",
  "orientation" : "portrait",
  "scale" : "2x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_750x1334-3.png",
  "extent" : "full-screen",
  "minimum-system-version" : "7.0",
  "scale" : "1x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_1334x750.png",
  "extent" : "full-screen",
  "minimum-system-version" : "7.0",
  "scale" : "1x"
},
{
  "orientation" : "portrait",
  "idiom" : "ipad",
  "filename" : "iOS_portrait_1536x2048-2.png",
  "extent" : "full-screen",
  "minimum-system-version" : "7.0",
  "scale" : "2x"
},
{
  "orientation" : "landscape",
  "idiom" : "ipad",
  "filename" : "iOS_landscape_2048x1536.png",
  "extent" : "full-screen",
  "minimum-system-version" : "7.0",
  "scale" : "2x"
}
],
"info" : {
  "version" : 1,
  "author" : "xcode"
}
}

我使用的是Xcode 8,部署目标是iOS 10.0

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:0)

改变你的

{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "736h",
  "filename" : "iOS_portrait_1080x1920.png",
  "minimum-system-version" : "8.0",
  "orientation" : "portrait",
  "scale" : "3x"
},

{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "736h",
  "filename" : "iOS_portrait_1242x2208.png",
  "minimum-system-version" : "8.0",
  "orientation" : "portrait",
  "scale" : "3x"
},

并确保您的图片iOS_portrait_1242x2208.png分辨率确实 1242x2208