首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >iPhone 6S plus和iPhone 7 plus中的发射图像问题

iPhone 6S plus和iPhone 7 plus中的发射图像问题
EN

Stack Overflow用户
提问于 2016-11-10 11:52:05
回答 1查看 641关注 0票数 0

我对Xcode非常陌生。我有我的应用程序的启动屏幕的特定图像。我使用拖放到图标(Images.xassets -> LaunchImage)添加了它们。

除了iPhone 6s +和iPhone 7+之外,所有这些设备都能正常工作。

我的contents.json文件如下所示

代码语言:javascript
运行
复制
{

 "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

如能提供任何帮助,将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2017-04-19 07:50:47

改变你的

代码语言:javascript
运行
复制
{
  "extent" : "full-screen",
  "idiom" : "iphone",
  "subtype" : "736h",
  "filename" : "iOS_portrait_1080x1920.png",
  "minimum-system-version" : "8.0",
  "orientation" : "portrait",
  "scale" : "3x"
},

代码语言:javascript
运行
复制
{
  "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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40526965

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档