问题
I want to change the application icon from the default one to custom one.
I'm using this element in application-descriptor.xml
<thumbnailImage>common/images/some-logo.png</thumbnailImage>
but nothing changes.
There is still a default image in Worklight Console and iPad, that i deploy to the iOS Simulator.
回答1:
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:
- 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)
- Build the generated Xcode project in Xcode
- Run on device / iOS Simulator
- Open the
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.
来源:https://stackoverflow.com/questions/17611138/ibm-worklight-cant-change-app-icon-in-both-worklight-console-and-device