zoukankan      html  css  js  c++  java
  • 适配ipad Pro

    买了个新款ipad pro 11寸的,发现我们的ipad项目。 上下左右都有黑边

    使用info.plist设置启动图,不用asset和launch storyboard

    图片用如下格式命名,拖到项目中:

    <key>UILaunchImages~ipad</key>
        <array>
            <dict>
                <key>UILaunchImageSize</key>
                <string>{1024, 1366}</string>
                <key>UILaunchImageOrientation</key>
                <string>Landscape</string>
                <key>UILaunchImageName</key>
                <string>Default-iOS12-Landscape-1024h</string>
                <key>UILaunchImageMinimumOSVersion</key>
                <string>12.0</string>
            </dict>
            <dict>
                <key>UILaunchImageSize</key>
                <string>{834, 1194}</string>
                <key>UILaunchImageOrientation</key>
                <string>Landscape</string>
                <key>UILaunchImageName</key>
                <string>Default-iOS12-Landscape-834h</string>
                <key>UILaunchImageMinimumOSVersion</key>
                <string>12.0</string>
            </dict>
            <dict>
                <key>UILaunchImageSize</key>
                <string>{834, 1112}</string>
                <key>UILaunchImageOrientation</key>
                <string>Landscape</string>
                <key>UILaunchImageName</key>
                <string>Default-iOS11-Landscape-834h</string>
                <key>UILaunchImageMinimumOSVersion</key>
                <string>11.0</string>
            </dict>
            <dict>
                <key>UILaunchImageMinimumOSVersion</key>
                <string>7.0</string>
                <key>UILaunchImageName</key>
                <string>Default-iOS7-Landscape</string>
                <key>UILaunchImageOrientation</key>
                <string>Landscape</string>
                <key>UILaunchImageSize</key>
                <string>{768, 1024}</string>
            </dict>
        </array>

      

     ------下面的解决办法不是很完美,launch screen file 的图片在不同尺寸的屏幕上可能会变形,还是使用上面info.plist的方式更好---------

    解:

    升级到最新版xcode:  Version 10.1 (10B61)

    不使用launch image作为启动图,

    使用launch screen file作为启动图

    搞定

  • 相关阅读:
    关于 数据库中 读写 Blob 字段的正确做法。
    C# wave mp3 播放器探寻
    公布Delphi热键注册源码
    Windows 下 Eclipse 集成开发环境演绎
    VS2012 MSHA 文件制做程序
    Erlang 学习笔记 (二) Debugger工具的使用
    Excel里数字列号转换为字符标签列
    串或序列的rotate操作
    64K动画技术剖析:Mod音乐的制作和使用
    64K动画 技术剖析之:Metaball
  • 原文地址:https://www.cnblogs.com/tufei7/p/10361229.html
Copyright © 2011-2022 走看看