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