【发布时间】:2016-03-02 16:00:31
【问题描述】:
这是我的第一个应用程序。对于这个特定问题,我在使用 PhoneGap Build 并在装有 iOS 9.2.1 的 iPhone 6 上进行测试时看到了它。
根据我的研究,它似乎是闪屏插件 - 已在 3.4 版中修复。应用程序构建中的插件版本似乎是 3.2,所以我认为它还没有发布。我没有在 config.xml 中指定版本,所以它应该拉最新版本。有关我在说什么的更多详细信息,请参阅我在下面发布的答案中的链接。
我正在测试一个使用 PhoneGap Build 构建的应用,在我的 iPhone 6 上,它一开始可以很好地显示初始屏幕,但随后会翻转为纵向并使用非常大的图像,所以我只看到了初始屏幕的一部分。我将应用程序设置为仅横向,并且在调用启动屏幕的书面代码中没有任何内容。我的 iOS 设置是:
<platform name="ios">
<!-- Portrait -->
<splash src="res/screen/ios/480x320.png" width="320" height="480"/>
<splash src="res/screen/ios/960x640.png" width="640" height="960"/>
<splash src="res/screen/ios/1024x768.png" width="768" height="1024"/>
<splash src="res/screen/ios/1136x640.png" width="640" height="1136"/>
<splash src="res/screen/ios/1334x750.png" width="750" height="1334"/>
<splash src="res/screen/ios/2048x1536.png" width="1536" height="2048"/>
<splash src="res/screen/ios/2208x1242.png" width="1242" height="2208"/>
<!-- Landscape -->
<splash src="res/screen/ios/480x320.png" width="480" height="320"/>
<splash src="res/screen/ios/960x640.png" width="960" height="640"/>
<splash src="res/screen/ios/1024x768.png" width="1024" height="768"/>
<splash src="res/screen/ios/1136x640.png" width="1136" height="640"/>
<splash src="res/screen/ios/1334x750.png" width="1334" height="750"/>
<splash src="res/screen/ios/2048x1536.png" width="2048" height="1536"/>
<splash src="res/screen/ios/2208x1242.png" width="2208" height="1242"/>
</platform>
我玩过,似乎根本没有使用风景图像。肖像是我创建的风景图像,最初看起来是正确的。知道我需要做什么来确保启动画面始终处于横向并使用正确的图像吗?
第二部分。我没有指定默认的启动画面,因为我不知道它应该是什么规格。任何想法?谢谢。
为了明确 cmets 中提出的问题:我使用 桌面应用程序 仅用于一些基本测试,并且我知道它不使用我的 config.xml 文件
【问题讨论】:
-
谢谢杰西。我已经添加了您要求的信息以及一些其他详细信息。
-
它根本没有作用。它只是在我压缩代码并上传构建之前的另一种测试方法。
-
PhoneGap Desktop 与此问题无关,因为它在测试时不显示启动画面。这个问题是我使用 PhoneGap Build 时的问题。
标签: cordova phonegap-build splash-screen