【问题标题】:Phonegap Build (config.xml) and iPad splashscreenPhonegap Build (config.xml) 和 iPad 闪屏
【发布时间】:2012-04-02 11:04:46
【问题描述】:

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

我正在运行装有 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>

【问题讨论】:

  • 我遇到了同样的问题。你找到解决办法了吗?

标签: ios ipad ios5 cordova splash-screen


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-31
    • 1970-01-01
    • 2013-11-19
    • 2013-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多