我为ios生成了一堆启动画面,它们就在这里
www/res/screen/ios
我的config.xml文件有这个小块:
<gap:splash gap:platform='ios' width='2008' height='1536' src='www/res/screen/ios/screen-ipad-landscape-2x.png' />
<gap:splash gap:platform='ios' width='1024' height='768' src='www/res/screen/ios/screen-ipad-landscape.png' />
<gap:splash gap:platform='ios' width='1536' height='2008' src='www/res/screen/ios/screen-ipad-portrait-2x.png' />
<gap:splash gap:platform='ios' width='768' height='1024' src='www/res/screen/ios/screen-ipad-portrait.png' />
<gap:splash gap:platform='ios' width='960' height='640' src='www/res/screen/ios/screen-iphone-landscape-2x.png' />
<gap:splash gap:platform='ios' width='480' height='320' src='www/res/screen/ios/screen-iphone-landscape.png' />
<gap:splash gap:platform='ios' width='640' height='960' src='www/res/screen/ios/screen-iphone-portrait-2x.png' />
<gap:splash gap:platform='ios' width='320' height='480' src='www/res/screen/ios/screen-iphone-portrait.png' />
但是当我构建时,似乎没有这些图像被复制到构建中。我错过了什么吗?
答案 0 :(得分:1)
我认为 www 太多了。路径应该相对于www /已经如此,它应该是:
<gap:splash gap:platform='ios' width='2008' height='1536' src='res/screen/ios/screen-ipad-landscape-2x.png' />
<强>更新强>
由于我很确定今天早些时候看到有关此事的附注,我检查了文件。当然,这些对于PhoneGap和PhoneGap Build来说都是相反的。
请注意&#34; src&#34;的价值属性是相对于项目目录而不是www目录。
src :(必需)指定图像文件相对于www目录的位置