19 Jun 2010

iPhone 4 with high resolution retina display.

The new iPhone 4 sports a high-resolution display called Retina with 326ppi resolution. While you already had to create different renders of your application icon and launch screens for the iPhone and iPad versions of your apps, the iPhone 4 means that you now have to have two renders (low-resolution and high-resolutions) of your artwork for just the iPhone version of your app. Couple this is with the iPad and iPhone versions, and the landscape and portrait versions of the launch images and you end up with quite a number of app icons and launch images to create.

If anything is apparent, it's that you should probably be working with vectors whenever possible and rending the different assets from them using some sort of automated process (actions in Photoshop work well for this. There's also an OS X app called Opacity that supports this workflow – although I couldn't really get into it when I gave it a shot last week.)

Although there are a number of ways to include the various icons and launch images in your apps, I would recommend that you go with the naming convention approach.

For example, for your application icons:

  • Icon.png (57x57 – for iPhone and iPod Touch)
  • Icon@2x.png (114x114 – for iPhone 4)
  • Icon-72.png (72x72 – for iPad)
  • Icon-Small.png (29x29 – Settings app and in search results for iPhone and iPod Touch)
  • Icon-Small@2x.png (58x58 – Settings app and in search results on iPhone 4)
  • Icon-Small-50.png (50x50 – search results on iPad)

One advantage of this method of working is that all you need to do is to generate your various icons (e.g., via an Action in Photoshop), drag them into XCode and you're done.

Different icons files for different targets

The additional advantage is that – if you're using multiple targets – it's really simple to include separate sets of icons for each target. For example, both Feathers and Feathers Visage share the same project and are simply different targets. To include the icons:

  1. Render your various icon files and place them in their own folder (e.g., I have folders called Twitter Icons and Facebook Icons)
  2. Drag the folders into XCode
  3. Bring up the Get Info panel for the folders in XCode and check the Target you want that folders contents to be included in.

Hope this helps.

Add Your Comment

Spam Protection by WP-SpamFree

Brief notes on iPhone 4 resolution independence, icons, and multiple targets

Some thoughts on handling icons for iPhone 4 and iPad with multiple targets.

  1. This is nuts! Can’t we all just go with the iPhone 4 res? I know from jailbroken experience that the 3GS will resize app icons, so why not just keep one size?

    Rykah
  2. Great info… Anyhow have a Photoshop Action droplet for this?

    Niklas Alvaeus
  3. Very good information. Thanks a lot! One thing I’d love to see included on this page are the radii of the rounded corners. I heard the 57×57 icon has a rounded radius of 9px and while I’m not sure about that, I discovered that the 114×114 has a rounded radius of 20px.

    Derek
  4. These perfectly sized icons work with both the iOS (iPhone, iPad, iPod Touch) and Android platforms. The iOS icons include the hard to find 2x size for the iPhone 4 with Retina Display. Check them out here: http://www.billybarker.net/350-ios-and-android-mobile-app-icons-for-developers/

    billybarker
  5. I appreciate this information as I just discovered our about to release app does not have a nice looking icon on the iPhone 4. It really does amaze me that Apple needs a 57×57 and a 58×58 version of the image.

    Really? They couldn’t just pick one of those sizes?

    Kevin Peck
  6. Do the folder names matter?

    Each file must start with the word “Icon”… or was that just an example?

    Vicky