tags:

views:

283

answers:

3

Is possible to set an image as an iPhone application unique icon in code instead of adding a PNG format image file and naming it Icon.png?

+3  A: 

a) No, not for developer applications. Also note that Apple's preload applications can demonstrably alter Default.png (see the Notes app) but that can't be done by the rest of us.

b) The app icon can also be a jpeg and can be called whatever you like - you just need to set it appropriately in Info.plist

Airsource Ltd
A: 

can state clearly how to set the Info.plist in order to call the image as the app icon

issac
A: 

Here is an example of what you would add to your Info.plist:

<key>CFBundleIconFile</key>
<string>app.png</string>

This (as well as other related options) is well documented in the iPhone Application Programming Guide.

Note: you may need an Apple Developer account to see that link.

Ryan E