ios - Cordova 覆盖 iPhone 启动画面

标签 ios visual-studio cordova splash-screen visual-studio-cordova

我正在 Visual Studio 2013 中使用适用于 Apache Cordova 3.1 CTP 的 Visual Studio 工具为 iOS 构建 Cordova 应用程序,但我遇到了 iPhone(和 iPad)图像问题。当生成要在 iOS 上构建的 XCode 项目时,它们将被覆盖。

在下图中,您可以在左侧看到我的 Visual Studio 项目中的图像。右侧是在XCode中打开的发送到iOS的项目。那里的图像不是我提供的图像,而是 Cordova 的默认图像。

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/Default@2x~iphone.png" width="640" height="960"/>
    <splash src="res/screen/ios/Default-Portrait@2x~iphone.png" width="640" height="960"/>
    <!-- 5, 5C & 5S        : 640×1136  -->
    <splash src="res/screen/ios/Default-568h@2x~iphone.png" width="640" height="1136"/>
    <splash src="res/screen/ios/Default-568h-Portrait@2x~iphone.png" width="640" height="1136"/>
    <!-- 6                 : 750×1334  -->
    <splash src="res/screen/ios/Default-667h@2x~iphone.png" width="750" height="1334"/>
    <splash src="res/screen/ios/Default-667h-Portrait@2x~iphone.png" width="750" height="1334"/>
    <!-- 6 Plus            : 1242×2208, downsampled to 1080 x 1920 -->
    <splash src="res/screen/ios/Default-736h@3x~iphone.png" width="1080" height="1920"/>
    <splash src="res/screen/ios/Default-736h-Portrait@3x~iphone.png" width="1080" height="1920"/>
</platform>

我看到了 Cordova iOS Splash ScreenCordova 3.4 iOS white screen after splash我已经按照那里的建议做了,但没有帮助。

如有任何建议,我们将不胜感激。

更新:我已将 Windows 和 Mac 上的 Cordova 更新到版本 5.1.1,但这对解决问题没有帮助。

更新:问题是一个明显的错误,文件夹名称是 screens 而不是 screen

最佳答案

这是一个指向 workaround 的链接.让我们知道这是否适合您。

关于ios - Cordova 覆盖 iPhone 启动画面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31341942/

相关文章:

android - DroidGap 无法解析为类型

iOS 屏幕坐标和缩放

ios - 如何将 Blender 混合(或 obj)文件转换为 Qualcom Vuforia .h 文件

ios - 不能在 swift 中使用 "Analyze"吗?

java - PhoneGap : Does it know what libraries won't run on target platforms?

mysql - 保护 TaffyDB 等客户端数据库

ios - 将音频修剪为视频长度

c# - 如何在我的工具箱下找到图表控件?

visual-studio - VS2013 和 Newtonsoft.Json 3.5.0.2

c++ - Linux 和 Windows 返回值不同的原因是什么,如何解决?