【问题标题】:Launch Image for iPad pro 12.9 inch12.9 英寸 iPad pro 的启动图像
【发布时间】:2018-02-13 13:11:06
【问题描述】:

我有一个 ipad 应用程序,其 UI 在 ipad pro 12.9 英寸上显示缩放或“显示缩放”。 这是因为没有使用正确的启动图像。

我发现 ipad pro - 12.9 英寸的启动图像尺寸 = 2048 x 2732

当我尝试在 media.xcasset 中添加正确的图像时,ipad pro 没有占位符。

如何为 ipad pro 添加正确的 lauch 图片,以免 UI 被缩放。

【问题讨论】:

  • 你能找到解决这个问题的方法吗?

标签: ipad launchimage


【解决方案1】:

LaunchImage支持iOS 8以下,所以iOS 8+版本必须使用LaunchScreen

如果您的应用普遍支持(iPhone / iPad)然后创建两个单独的LauchScreen.storyboard

  • 创建两个storyboard

    LaunchScreeniPhone.storyboard LaunchScreeniPad.storyboard

  • 在storyboard中设置imageView,在imageView中设置大图。

  • 然后在两个 LauchScreen.storyboard 的 info.plist 文件中添加键和值。

    <key>UILaunchStoryboardName</key> <string>LaunchScreeniPhone</string>

    <key>UILaunchStoryboardName~ipad</key> <string>LaunchScreeniPad</string>

  • 最后在 General -> App Icons and Lauch images -> LauchScreen -> LauchScreeniPhone 中设置 LaunchScreen。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-05
    • 2020-02-19
    • 1970-01-01
    • 1970-01-01
    • 2014-03-16
    • 2015-12-28
    • 2017-09-08
    相关资源
    最近更新 更多