How to stop iOS launch image moving up in Phonegap / Sencha Touch

假如想象 提交于 2019-12-23 17:11:19

问题


I have a Sencha Touch 1.1 / Phonegap 1.3 application and I've got a portrait and landscape launch image sized according to the iOS documentation.

When the app first launches, both launch images are correctly positioned. Once the loading spinner is displayed, the launch image shifts vertically by a small amount leaving a white strip across the bottom of the screen (see image). I've added a red border around the gap so it can be seen - the red border does not appear on the device.

How can I stop the launch image shifting vertically?


回答1:


According to Shazron Abdullah: "The fix is indeed having 1024x768, and this is specific for Cordova's requirements since we are trying to "match" the behaviour of the default splashscreen and are doing transformations on it."

Looks like the issue is still unresolved and is a bug in PhoneGap/Cordova.

EDIT: Confirmed. This fix works using Cordova 1.5.0




回答2:


I just had the same issue, but I was able to solve it.

Make sure that while naming the splash screen file, you have included the .png extension as part of the name.




回答3:


You must change in config.xml following lines:

<preference name="show-splash-screen-spinner" value="true" />    
<preference name="auto-hide-splash-screen" value="false" />

and

<preference name="AutoHideSplashScreen" value="false" />   
<preference name="ShowSplashScreenSpinner" value="false" />


来源:https://stackoverflow.com/questions/9057472/how-to-stop-ios-launch-image-moving-up-in-phonegap-sencha-touch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!