iPhoneX初始屏幕Portait被忽略并被替换

时间:2018-11-09 08:14:26

标签: ios iphone xcode cordova splash-screen

在XCode Version 9.0 (9A235)上,初始屏幕iPhoneX纵向未使用相应的格式.png

plateforms/ios/app/Image.xcassets/LaunchImage.launchimage/*.png
  • Default-2436h.png(肖像;应将此img作为启动画面)

  • Default-Landscape-2436h.png(横向;用于初始crecrecreen)

  • Default@2x~iphone.png(此img在应用显示之前在最终加载时显示为怪异位置)

问题流程:

  • 应用已打开

  • 显示了错误的启动画面(横向IPhoneX:蓝色X)

  • 然后默认的初始屏幕以不合逻辑的位置显示(iPhone Portait:绿色X)

  • 应用已加载,一切正常

  • Splashcreen肖像iPhone X从未使用过(粉红色X)

使用cordova-splash

生成的飞溅

科尔多瓦版本:cordova -v:8.0.0

config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.app.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>App</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@cordova.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <preference name="DisallowOverscroll" value="true" />
        <preference name="UIWebViewBounce" value="false" />
    </platform>
    <plugin name="cordova-hot-code-push-plugin" spec="~1.5.3" />
    <plugin name="cordova-plugin-compat" spec="^1.1.0" />
    <plugin name="cordova-plugin-geolocation" spec="^2.4.3" />
    <plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" />
    <plugin name="cordova-plugin-ionic-webview" spec="~1.1.15" />
    <plugin name="cordova-plugin-network-information" spec="^1.3.3" />
    <plugin name="cordova-plugin-splashscreen" spec="^4.0.3" />
    <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
    <plugin name="cordova-sqlite-storage" spec="~2.1.2" />
    <plugin name="cordova-plugin-statusbar" spec="~2.2.3" />
    <plugin name="cordova-plugin-local-notification" spec="^0.9.0-beta.2" />
    <chcp>
        <config-file url="https://s3-eu-west-1.amazonaws.com/app/chcp/chcp.json" />
        <auto-download enabled="true" />
        <auto-install enabled="true" />
    </chcp>
    <engine name="ios" spec="^4.5.5" />
    <engine name="android" spec="^6.2.3" />
</widget>

我不明白为什么应用会忽略IPhoneX Portrait初始屏幕。你呢?

感谢您的帮助。

以下是说明问题的屏幕:

0 个答案:

没有答案