【问题标题】:LaunchImage does not handle certain iPads correctlyLaunchImage 无法正确处理某些 iPad
【发布时间】:2017-09-13 17:38:25
【问题描述】:

我正在为我的应用的 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 上不会发生。我能找到帮助的文档很少。感谢我能得到的任何帮助。

【问题讨论】:

    标签: ios xcode ipad launchimage


    【解决方案1】:

    使用启动情节提要并设置相应的图像并从中心对齐图像纵横比。

    【讨论】:

    • 我不确定如何使用情节提要为不同的设备设置多个图像。你能指出我正确的方向吗?
    猜你喜欢
    • 1970-01-01
    • 2019-09-06
    • 1970-01-01
    • 2013-02-14
    • 1970-01-01
    • 1970-01-01
    • 2017-07-29
    • 2023-03-14
    • 1970-01-01
    相关资源
    最近更新 更多