IBM Worklight - 无法在Worklight Console和设备中更改应用程序图标 [英] IBM Worklight - Can't change app icon in both Worklight Console and device

查看:132
本文介绍了IBM Worklight - 无法在Worklight Console和设备中更改应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将应用程序图标从默认图标更改为自定义图标。

I want to change the application icon from the default one to custom one.

我在application-descriptor.xml中使用此元素

I'm using this element in application-descriptor.xml

<thumbnailImage>common/images/some-logo.png</thumbnailImage>

但没有任何变化。

Worklight Console和iPad中仍然有一个默认图像,我部署到iOS模拟器。

but nothing changes.
There is still a default image in Worklight Console and iPad, that i deploy to the iOS Simulator.

推荐答案

应用程序中的 thumbnailImage 元素 - descriptor.xml 是否可以控制您在设备/模拟器中看到的应用程序图标。

The thumbnailImage element in application-descriptor.xml does not control the application icon you see in a device/simulator.

要更改应用程序本身的应用程序图标,请在 iOS

For changing the application icon of the application itself, in iOS:


  1. 打开 iphone \\\
    ativeResources \ Resources
    文件夹

  2. 将您的图标复制到文件夹

  3. 右键单击应用程序文件夹并选择:


    • 运行方式>> Build All and Deploy或

    • 运行方式>> Xcode项目(如果在Mac上)

  1. Open the iphone\nativeResources\Resources folder
  2. Copy your icon(s) to the folder
  3. Right-click on the application folder and choose:
    • Run As >> Build All and Deploy or
    • Run As >> Xcode project (if on Mac)


图标的大小和文件名因您想要更改的图标而异。

遵循Apple的指南在本文中:自定义图标和图像创建指南

The size and filename of the icon varies depending on which icon you want to change.
Follow Apple's guidelines in this article: Custom Icon and Image Creation Guidelines.

基本上,请查看中所示的命名约定iphone \ native\Resources (不要与我上面提到的其他路径混淆)。您的图标文件名必须与现有图标​​的名称匹配,以便在构建操作期间替换它。

Basically, look the naming convention as seen in iphone\native\Resources (not to be confused with the other path I mentioned above). Your icon filename must match the name of the existing icon in order to replace it during the build operation.

这篇关于IBM Worklight - 无法在Worklight Console和设备中更改应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆