簡體   English   中英

Phonegap Build(config.xml)和iPad啟動畫面

[英]Phonegap Build (config.xml) and iPad splashscreen

我正在嘗試使用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>

原來那個高度是768而不是748(沒有狀態欄),所以我在config.xml中得到了這個標簽:

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

並且splashscreen_tablet.png也必須旋轉90度。 它應該是768x1024 png。 它的工作方式與脫機webapp相同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM