1

我正在爲使用Visual Studio Tools for Visual Studio 2013中的Apache Cordova 3.1 CTP構建iOS的Cordova應用程序,並且我對iPhone(和iPad)圖像有問題。當生成發送到iOS上的XCode項目時,它們將被覆蓋。Cordova覆蓋iPhone啓動屏幕

在下圖中,您可以在左側看到Visual Studio項目中的圖像。在右側是發送到在XCode中打開的iOS的項目。那裏的圖片不是我提供的,但是來自科爾多瓦的默認圖片。

enter image description here

其結果是,應用程序被使用默認的啓動畫面,不是我所創建的那些建。

我的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 ScreenCordova 3.4 iOS white screen after splash和我所做的事,所建議的存在,但它並沒有幫助。

任何建議表示讚賞。

UPDATE:我已經在Windows和Mac上更新了Cordova到版本5.1.1,但它沒有幫助解決問題。

UPDATE:問題是一個公然的錯誤,文件夾名稱是screens而不是screen

+0

您是否替換了'projectName/platforms/ios/projectName/Resources/splash'中的原始內容? – Sithys

+0

是的。我放了一張截圖,在這裏你可以看到其中一幅圖像。 –

回答

1

這是鏈接到workaround。讓我們知道這是否適合你。

+0

感謝您的鏈接。我會試一試。 –

+0

我剛剛意識到我的路徑'res/screen/ios'不正確,因爲該文件夾被稱爲「屏幕」而不是「屏幕」。在我解決之後,它可以與標準科爾多瓦名稱和您的解決方法鏈接中提到的名稱一起使用。 –