IBM Worklight - 无法在Worklight Console和设备中更改应用程序图标 [英] IBM Worklight - Can't change app icon in both Worklight Console and device
问题描述
我想将应用程序图标从默认图标更改为自定义图标。
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.
-
要更改Worklight Console中的应用程序图标,请参阅此问题中的答案: IBM Worklight - 项目中的缩略图图像未在Worklight Console中更新。
要更改应用程序本身的应用程序图标,请在 iOS :
For changing the application icon of the application itself, in iOS:
- 打开
iphone \\\
文件夹
ativeResources \ Resources - 将您的图标复制到文件夹
- 右键单击应用程序文件夹并选择:
- 运行方式>> Build All and Deploy或
- 运行方式>> Xcode项目(如果在Mac上)
- Open the
iphone\nativeResources\Resources
folder - Copy your icon(s) to the folder
- 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屋!