Phonegap iPad应用程序启动/启动屏幕在deviceReady上移动 [英] Phonegap iPad App Splash / Launch Screen Shifts on deviceReady

查看:114
本文介绍了Phonegap iPad应用程序启动/启动屏幕在deviceReady上移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用HTML / JS / CSS + Phonegap创建的iPad应用程序(仅横向)一切正常工作,但我遇到了与Splash /启动屏幕的问题。

I have an iPad Application (landscape orientation only) created with HTML/JS/CSS + Phonegap; everything works as expected however I've run into a problem with the Splash / Launch Screen.

当应用程序加载时,显示正确的Splash / Launch屏幕和命名等),但是一旦应用程序到达deviceReady状态并隐藏了Splash / Launch屏幕,它会向上移动大约20px,并在隐藏之前沿着右下方显示一个白色条。

When the Application loads, the correct Splash / Launch Screen is shown (correct size and naming etc.), however once the application reaches deviceReady state and hides the Splash / Launch Screen, it shifts up about 20px and shows a white bar along the bottom right before it is hidden.

有谁知道发生了什么和/或如何解决它?

Does anyone know what is happening and / or how to fix it?

谢谢!

推荐答案

对于任何遇到同样问题的人;原来,这实际上是Phonegap如何工作的一部分。在初始启动图像显示之后,就在deviceReady状态开始之前,Phonegap将UIWebView向上移动20px。解决方法是在屏幕的完整像素大小创建启动图像,并忽略Xcode中的警告。

For anyone running into this same problem; turns out that this is actually part of how Phonegap works. After the initial launch image is displayed and right before the deviceReady State kicks in, Phonegap shifts the UIWebView up 20px. The workaround is to create the launch image at the full pixel size of the screen and disregard the warning in Xcode.

我已经通过这种方式发布了多个应用到iTunes商店没有任何问题。

I've posted several apps to the iTunes store this way without any problems.

我希望这有助于某人!

这篇关于Phonegap iPad应用程序启动/启动屏幕在deviceReady上移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆