我正在爲使用Visual Studio Tools for Visual Studio 2013中的Apache Cordova 3.1 CTP構建iOS的Cordova應用程序,並且我對iPhone(和iPad)圖像有問題。當生成發送到iOS上的XCode項目時,它們將被覆蓋。Cordova覆蓋iPhone啓動屏幕
在下圖中,您可以在左側看到Visual Studio項目中的圖像。在右側是發送到在XCode中打開的iOS的項目。那裏的圖片不是我提供的,但是來自科爾多瓦的默認圖片。
其結果是,應用程序被使用默認的啓動畫面,不是我所創建的那些建。
我的config.xml文件包含以下內容:
<platform name="ios">
<!-- 1st Gen, 3G & 3GS : 320×480 -->
<splash src="res/screen/ios/Default~iphone.png" width="320" height="480"/>
<splash src="res/screen/ios/Default-Portrait~iphone.png" width="320" height="480"/>
<!-- 4 & 4S : 640×960 -->
<splash src="res/screen/ios/[email protected]~iphone.png" width="640" height="960"/>
<splash src="res/screen/ios/[email protected]~iphone.png" width="640" height="960"/>
<!-- 5, 5C & 5S : 640×1136 -->
<splash src="res/screen/ios/[email protected]~iphone.png" width="640" height="1136"/>
<splash src="res/screen/ios/[email protected]~iphone.png" width="640" height="1136"/>
<!-- 6 : 750×1334 -->
<splash src="res/screen/ios/[email protected]~iphone.png" width="750" height="1334"/>
<splash src="res/screen/ios/[email protected]~iphone.png" width="750" height="1334"/>
<!-- 6 Plus : 1242×2208, downsampled to 1080 x 1920 -->
<splash src="res/screen/ios/[email protected]~iphone.png" width="1080" height="1920"/>
<splash src="res/screen/ios/[email protected]~iphone.png" width="1080" height="1920"/>
</platform>
我看到Cordova iOS Splash Screen和Cordova 3.4 iOS white screen after splash和我所做的事,所建議的存在,但它並沒有幫助。
任何建議表示讚賞。
UPDATE:我已經在Windows和Mac上更新了Cordova到版本5.1.1,但它沒有幫助解決問題。
UPDATE:問題是一個公然的錯誤,文件夾名稱是screens
而不是screen
。
您是否替換了'projectName/platforms/ios/projectName/Resources/splash'中的原始內容? – Sithys
是的。我放了一張截圖,在這裏你可以看到其中一幅圖像。 –