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'不正确,因为该文件夹被称为“屏幕”而不是“屏幕”。在我解决之后,它可以与标准科尔多瓦名称和您的解决方法链接中提到的名称一起使用。 –