【问题标题】:How to set iPad Pro static launch image如何设置 iPad Pro 静态启动画面
【发布时间】:2016-09-05 20:46:49
【问题描述】:

在 Graphics->Launch Screen 部分查看 Apple Human Interaction Guidelines 中关于静态启动屏幕图像Apple HIG

“最好为启动屏幕使用 Xcode 故事板,但如果需要,您可以提供一组静态图像。为不同的设备创建不同大小的静态图像,并确保包含状态栏区域。”

然后列出 iOS 10 支持的所有设备。

有谁知道这是如何完成的,例如对于 12" iPad Pro?在资产目录中没有任何地方可以为此添加图像。我是否必须在 Info.plist 文件中使用 UILaunchImages 数组?如果有没有人举个例子。

提前致谢。

【问题讨论】:

    标签: ios image ipad launch


    【解决方案1】:

    是的,你必须在 Info.plist 中使用 UILaunchImages

    这是 Apple 的文档:

    https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW28

    下面是一个示例:

    <key>UILaunchImages</key>
    <array>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>7.0</string>
            <key>UILaunchImageName</key>
            <string>Img320x568ptsPort@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Landscape</string>
            <key>UILaunchImageSize</key>
            <string>{320, 568}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>7.0</string>
            <key>UILaunchImageName</key>
            <string>Img320x568ptsLdsc@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Portrait</string>
            <key>UILaunchImageSize</key>
            <string>{320, 568}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>7.0</string>
            <key>UILaunchImageName</key>
            <string>Img320x480ptsPort@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Landscape</string>
            <key>UILaunchImageSize</key>
            <string>{320, 480}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>7.0</string>
            <key>UILaunchImageName</key>
            <string>Img320x480ptsLdsc@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Portrait</string>
            <key>UILaunchImageSize</key>
            <string>{320, 480}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>8.0</string>
            <key>UILaunchImageName</key>
            <string>Img375x667ptsPort@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Landscape</string>
            <key>UILaunchImageSize</key>
            <string>{375, 667}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>8.0</string>
            <key>UILaunchImageName</key>
            <string>Img375x667ptsLdsc@2x</string>
            <key>UILaunchImageOrientation</key>
            <string>Portrait</string>
            <key>UILaunchImageSize</key>
            <string>{375, 667}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>8.0</string>
            <key>UILaunchImageName</key>
            <string>Img414x736ptsLdsc@3x</string>
            <key>UILaunchImageOrientation</key>
            <string>Landscape</string>
            <key>UILaunchImageSize</key>
            <string>{414, 736}</string>
        </dict>
        <dict>
            <key>UILaunchImageMinimumOSVersion</key>
            <string>8.0</string>
            <key>UILaunchImageName</key>
            <string>Img414x736ptsPort@3x</string>
            <key>UILaunchImageOrientation</key>
            <string>Portrait</string>
            <key>UILaunchImageSize</key>
            <string>{414, 736}</string>
        </dict>
    </array>
    

    【讨论】:

    • 干杯我会检查一下。你知道这是否可以替代使用资产目录,还是我可以使用它来从消息目录中添加缺少的 iPad Pro。例如,我是否必须在此处添加所有启动图像选项,或者我可以让 iPad Pro 的应用程序从指定的资产目录中选择其他的。
    • 终于通过 1 完成了这项工作。关闭资产目录用于启动图像。 2. 将引用的启动映像移动到 Xamarin 项目级别,以便它们位于根捆绑包中。我可以通过查看 Xamarin 项目中的 选项来使这个更清洁 - developer.xamarin.com/guides/ios/application_fundamentals/…
    猜你喜欢
    • 2014-11-23
    • 1970-01-01
    • 2014-01-09
    • 1970-01-01
    • 2022-11-25
    • 1970-01-01
    • 1970-01-01
    • 2021-12-15
    • 2016-05-04
    相关资源
    最近更新 更多