nicjohnson
nicjohnson

Reputation: 604

Xcode or iOS won't use my Icon-72.png on the iPad

I have created 3 files for the app icon: Icon.png, Icon-72.png, and [email protected]. [email protected] shows up fine on the actual iPhone 4. The simulator, however, only uses the 57px version. With the iPad neither the simulator nor the iPad itself uses the Icon-72.png file. Only the 57px version.

Help! :)

Upvotes: 2

Views: 7931

Answers (3)

lucius
lucius

Reputation: 8685

This is what works for me across 6 different projects on iPhone and iPad. The Info.plist file has these entries:

<key>CFBundleIconFile</key>
<string>Icon</string>
<key>CFBundleIconFiles</key>
<array>
    <string>Icon.png</string>
    <string>Icon-58.png</string>
    <string>Icon-72.png</string>
    <string>Icon-114.png</string>
    <string>Icon-Small-50.png</string>
    <string>Icon-Small.png</string>
</array>

Note that the CFBundleIconFile is set. I have had no problems with including it.

And the icon files are all in PNG format and have these file names and sizes:

  • Icon.png, 57px.
  • Icon-58.png, 58px
  • Icon-72.png, 72px
  • Icon-114.png, 114px.
  • Icon-Small.png, 29px.
  • Icon-Small-50.png, 50px.

Make sure your project is copying the icon PNG files to your app bundle for all targets. I'm building and linking against the iOS 4.0 SDK, with the Deployment target set to 3.1.3.

Upvotes: 2

Nick
Nick

Reputation: 9850

If you want the iPad to pick up multiple icons without specifying their names, make sure CFBundleIconFile (the singular of the other suggestion) is unset. If it's set to a particular icon file, that icon will always be used, regardless of which device you're on.

Though christophercotten is correct about the 3.2+ method for specifying multiple icon files, if they're different from the default values.

Upvotes: 5

christophercotton
christophercotton

Reputation: 5859

Did you add the icons to the Info.plist? You will need to make sure you added in an entry for "CFBundleIconFiles" and add each into the list. You can see it at the Apple Developer website with screenshots there:

http://developer.apple.com/iphone/library/qa/qa2010/qa1686.html#IPHONEADDITEMS

If you don't do that, it will only use the one icon.

Upvotes: 5

Related Questions