且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Phonegap iPad应用程序启动/启动屏幕在deviceReady上移动

更新时间:2021-09-08 22:40:06

对于任何遇到同样问题的人;原来,这实际上是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.

我希望这有助于某人!