首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >LaunchImage不能正确处理某些iPads

LaunchImage不能正确处理某些iPads
EN

Stack Overflow用户
提问于 2017-09-14 01:38:26
回答 1查看 118关注 0票数 0

我正在为我的应用程序的LaunchImage使用images.xcassets,而某些类型的iPad在启动时显示的是iPhone图像或AppIcon图像,而不是指定的iPad图像。

这是我的应用程序图标和启动图像设置的屏幕截图

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

代码语言:javascript
复制
{
  "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上不会发生。我能找到的帮助的文档很少。感谢我能得到的任何帮助。

EN

回答 1

Stack Overflow用户

发布于 2017-09-14 03:15:01

使用启动故事板并设置相应的图像,并从中心对齐图像纵横比。

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

https://stackoverflow.com/questions/46203730

复制
相关文章

相似问题

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