Ole Begemann: iOS Development

iOS SDK, Cocoa and Objective-C

How to specify two icons for a universal iPhone/iPad app

with 2 comments

The icon of an iPhone app must be 57×57 pixels, and iPad app icons must be 72×72 pixels. How to specify both icons in your Info.plist, given that the CFBundleIconFile property only allows one value?

Apple’s documentation on this is a little hard to find but the solution is very simple: add a CFBundleIconFiles (note the plural) key of type Array to your Info.plist. The items in the array should be string values containing the filenames of all the icons your app needs. In a universal app, you should provide at least the two main icons (57×57 and 72×72). Optionally, you can also add two smaller icons used for your app in the Settings app and Spotlight search. These should be 29×29 pixels for the iPhone and 48×48 for the iPad.

CFBundleIconFiles key in Info.plist

The filenames of the icons and the order of the items in the array are arbitray. The system automatically chooses the file with the correct dimensions based on the device type. You should keep the CFBundleIconFile key and have it point to your iPhone icon for 3.0/3.1 compatibility.

Written by Ole Begemann

April 12th, 2010 at 5:15 pm

Posted in Uncategorized

2 Responses to 'How to specify two icons for a universal iPhone/iPad app'

Subscribe to comments with RSS or TrackBack to 'How to specify two icons for a universal iPhone/iPad app'.

  1. PBK

    13 May 10 at 3:38 pm

  2. @PBK: thanks for the link, that Apple document is a very good overview.

    Ole Begemann

    17 May 10 at 2:22 pm

Leave a Reply