适用于iPhone 6/7/8 +和X的纵向和横向启动图像

时间:2017-10-12 12:16:40

标签: ios iphone uilaunchimagefile

我试图为iPhone 6/7/8 +和X支持纵向和横向启动图像。但是,在纵向模式下启动时,我会获得横向启动图像。它在横向模式下工作正常。下面是我的info.plist文件和我的XCode项目中的文件。

enter image description here

<key>UILaunchImages</key>
<array>
  <dict>
    <key>UILaunchImageName</key>
    <string>Default-736h</string>
    <key>UILaunchImageSize</key>
    <string>{414, 736}</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>8.0</string>
  </dict>
  <dict>
    <key>UILaunchImageName</key>
    <string>Default-736h-Landscape</string>
    <key>UILaunchImageSize</key>
    <string>{414, 736}</string>
    <key>UILaunchImageOrientation</key>
    <string>Landscape</string>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>8.0</string>
  </dict>
  <dict>
    <key>UILaunchImageName</key>
    <string>Default-812h</string>
    <key>UILaunchImageSize</key>
    <string>{375, 812}</string>
    <key>UILaunchImageOrientation</key>
    <string>Portrait</string>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>11.0</string>
  </dict>
  <dict>
    <key>UILaunchImageName</key>
    <string>Default-812h-Landscape</string>
    <key>UILaunchImageSize</key>
    <string>{375, 812}</string>
    <key>UILaunchImageOrientation</key>
    <string>Landscape</string>
    <key>UILaunchImageMinimumOSVersion</key>
    <string>11.0</string>
  </dict>
</array>

0 个答案:

没有答案