启动应用程序时启动画面从横向翻转为纵向
Splash screen is flipping from landscape to portrait when starting app
这是我的第一个应用程序。对于这个特定问题,我在使用 PhoneGap Build 并在 iPhone 6 和 iOS 9.2.1 上进行测试时看到了它。
根据我的研究,它似乎是闪屏插件 - 它已在 3.4 版中修复。应用程序构建中的插件版本似乎是 3.2,所以我认为它尚未发布。我没有在 config.xml 中指定版本,所以它应该是最新版本。请参阅我在下面的回答中发布的 link,以了解有关我所说内容的更多详细信息。
我正在测试一个使用 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>
我玩了一下,好像风景图根本用不上。肖像是我创建的最初看起来正确的风景图像。知道我需要做什么来确保初始屏幕始终横向显示并使用正确的图像吗?
这是第二部分。我没有指定默认启动画面,因为我不知道它应该是什么规格。任何的想法?谢谢
明确评论中提出的问题:我使用 桌面应用程序 仅用于一些基本测试,我知道它不使用我的 config.xml 文件
Cordova Splash Screen 插件似乎有问题。它被标记为已修复,但尚未发布。它似乎设置为版本 3.4,该插件的最新版本是 3.2。有关详细信息,请参阅 this。
与此同时,我最终暂时删除了该插件,它在 iOS 中正确显示了启动画面一秒钟,然后才点击应用程序。
这是我的第一个应用程序。对于这个特定问题,我在使用 PhoneGap Build 并在 iPhone 6 和 iOS 9.2.1 上进行测试时看到了它。
根据我的研究,它似乎是闪屏插件 - 它已在 3.4 版中修复。应用程序构建中的插件版本似乎是 3.2,所以我认为它尚未发布。我没有在 config.xml 中指定版本,所以它应该是最新版本。请参阅我在下面的回答中发布的 link,以了解有关我所说内容的更多详细信息。
我正在测试一个使用 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>
我玩了一下,好像风景图根本用不上。肖像是我创建的最初看起来正确的风景图像。知道我需要做什么来确保初始屏幕始终横向显示并使用正确的图像吗?
这是第二部分。我没有指定默认启动画面,因为我不知道它应该是什么规格。任何的想法?谢谢
明确评论中提出的问题:我使用 桌面应用程序 仅用于一些基本测试,我知道它不使用我的 config.xml 文件
Cordova Splash Screen 插件似乎有问题。它被标记为已修复,但尚未发布。它似乎设置为版本 3.4,该插件的最新版本是 3.2。有关详细信息,请参阅 this。
与此同时,我最终暂时删除了该插件,它在 iOS 中正确显示了启动画面一秒钟,然后才点击应用程序。