ios - VS 2005 的 Cordova 工具 : iOS app does not display splashscreen and icons

标签 ios cordova visual-studio-2013 visual-studio-cordova

使用 VS 2013 Cordova Tools(当前版本),我的 iOS 应用程序不会显示给定的启动屏幕和图标,除非我设置 <icon><splashscreen> config.xml 中的元素。然而,当config.xml使用可视化编辑器进行编辑,它只是删除所有 <icon><splashscreen>元素。我错过了什么吗?

Obs:图标和启动画面适用于开箱即用的 Android 应用程序,但不适用于 iOS。

最佳答案

不幸的是,在 VS 2013 中使用最新版本的 vs-mda-remote 时,这是一个已知问题。

您应该能够通过右键单击 > 查看代码将此 XML 添加到 config.xml 以解决问题。

<platformname="ios">
    <iconsrc="res/icons/ios/icon-60-3x.png"width="180"height="180" />
    <iconsrc="res/icons/ios/icon-60.png"width="60"height="60" />
    <iconsrc="res/icons/ios/icon-60-2x.png"width="120"height="120" />
    <iconsrc="res/icons/ios/icon-76.png"width="76"height="76" />
    <iconsrc="res/icons/ios/icon-76-2x.png"width="152"height="152" />
    <iconsrc="res/icons/ios/icon-40.png"width="40"height="40" />
    <iconsrc="res/icons/ios/icon-40-2x.png"width="80"height="80" />
    <iconsrc="res/icons/ios/icon-57.png"width="57"height="57" />
    <iconsrc="res/icons/ios/icon-57-2x.png"width="114"height="114" />
    <iconsrc="res/icons/ios/icon-72.png"width="72"height="72" />
    <iconsrc="res/icons/ios/icon-72-2x.png"width="144"height="144" />
    <iconsrc="res/icons/ios/icon-small.png"width="29"height="29" />
    <iconsrc="res/icons/ios/icon-small-2x.png"width="58"height="58" />
    <iconsrc="res/icons/ios/icon-50.png"width="50"height="50" />
    <iconsrc="res/icons/ios/icon-50-2x.png"width="100"height="100" />
  </platform>
  <platformname="ios">
    <splashsrc="res/screens/ios/screen-iphone-portrait.png"width="320"height="480" />
    <splashsrc="res/screens/ios/screen-iphone-portrait-2x.png"width="640"height="960" />
    <splashsrc="res/screens/ios/screen-ipad-portrait.png"width="768"height="1024" />
    <splashsrc="res/screens/ios/screen-ipad-portrait-2x.png"width="1536"height="2048" />
    <splashsrc="res/screens/ios/screen-ipad-landscape.png"width="1024"height="768" />
    <splashsrc="res/screens/ios/screen-ipad-landscape-2x.png"width="2048"height="1536" />
    <splashsrc="res/screens/ios/screen-iphone-568h-2x.png"width="640"height="1136" />
    <splashsrc="res/screens/ios/screen-iphone-portrait-667h.png"width="750"height="1334" />
    <splashsrc="res/screens/ios/screen-iphone-portrait-736h.png"width="1242"height="2208" />
    <splashsrc="res/screens/ios/screen-iphone-landscape-736h.png"width="2208"height="1242" />
  </platform>

更多已知问题:https://www.visualstudio.com/explore/cordova-known-issues-vs

关于ios - VS 2005 的 Cordova 工具 : iOS app does not display splashscreen and icons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30264686/

相关文章:

ios - iPad 应用程序的自定义数字键盘

ios - 在 TableViewController 上添加图像,直到搜索栏处于非事件状态

javascript - 如何使用 URI 使用 phonegap 压缩图像

c++ - C++ 中的程序完美读取一个文件,但在读取另一个文件时添加 "∩╗┐",但是两个文件的内容相同。如何?

ios - 为什么 UIColor.red 可以工作,但使用 UIColor 的初始值设定项却不行?

ios - MPMoviePlayerController 显示空白屏幕或崩溃应用程序

iphone - jquery mobile 按钮无法正确显示

android - 在启用硬件加速的情况下,Android 上的页面转换缓慢

c# - 在派生的 IronPython 类中与 Windows 窗体控件交互

visual-studio-2013 - VS2013 - 代码镜头可以出现在方法属性上方吗?