2012-04-02 75 views
2

我正在嘗試爲使用phonegap生成的橫向模式ipad應用程序配置初始屏幕。我使用phonegap文檔中提到的規範(https://build.phonegap.com/docs/config-xml),但它似乎不起作用。這似乎是splashscreen標籤的問題,因爲圖標工作得很好。Phonegap生成(config.xml)和iPad初始屏幕

我在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="[email protected]">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> 
+0

我遇到同樣的問題。你找到了解決方案嗎? – 2012-05-17 22:06:08

回答

1

原來,高度爲768,而不是748(無狀態欄),所以我結束了這個標籤在我的config.xml:

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

而splashscreen_tablet.png也必須旋轉90度。它應該是768x1024 png。它與離線webapps的工作方式相同。