Phonegap Build(config.xml)和iPad splashscreen

时间:2012-04-02 11:04:46

标签: ios ipad ios5 cordova splash-screen

我正在尝试使用phonegap构建为横向模式ipad应用配置启动画面。我使用了phonegap文档(https://build.phonegap.com/docs/config-xml)中提到的规范,但它似乎不起作用。这似乎是泼屏标签的问题,因为图标工作得很好。

我正在使用iOS 5.1运行iPad。有人有类似的问题吗?

非常感谢任何帮助。

这是我的config.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
        xmlns:gap = "http://phonegap.com/ns/1.0"
        id        = "com.myapp"
        version   = "1.0.0">

    <name>myapplication</name>
    <description>myapplication</description>
    <author href="https://www.myapp.org" email="my@app.org">myapp</author>

    <preference name="orientation" value="landscape" />

    <gap:splash src="gfx/ios/splashscreen_landscape.png" width="1024" height="748"/>
    <gap:splash src="gfx/ios/splashscreen_portrait.png" width="768" height="1004"/>  

    <icon src="gfx/ios/icon57x57.png" width="57" height="57"/>
    <icon src="gfx/ios/icon72x72.png" width="72" height="72"/>
    <icon src="gfx/ios/icon114x114.png" width="114" height="114"/>  
</widget>

1 个答案:

答案 0 :(得分:1)

原来高度是768而不是748(没有状态栏),所以我最终在我的config.xml中使用了这个标签:

<gap:splash src="gfx/ios/splashscreen_tablet.png" width="1024" height="768"/>

splashscreen_tablet.png也必须旋转90度。它应该是768x1024 png。它的工作方式与离线Web应用程序的工作方式相同。

相关问题