IBM Worklight - Can't change app icon in both Worklight Console and device

我怕爱的太早我们不能终老 提交于 2019-11-29 17:27:40
Idan Adar

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

  • For changing the application icon in Worklight Console, see my answer in this question: IBM Worklight - Thumbnail image from project is not updated in Worklight Console.

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

    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)
    4. Build the generated Xcode project in Xcode
    5. Run on device / iOS Simulator

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!