【ios】Phonegap Build(config.xml)和iPad啟動畫面
阿新 • • 發佈:2020-11-18
我正在嘗試使用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="[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>
解決辦法
原來那個高度是768而不是748(沒有狀態列),所以我在config.xml中得到了這個標籤:
<gap:splash src="gfx/ios/splashscreen_tablet.png" width="1024" height="768"/>
並且splashscreen_tablet.png也必須旋轉90度。它應該是768x1024 png。它的工作方式與離線webapp相同。
