Home
Reviews
Forums
New Games
Podcast
• submit tip •
Prev Previous Post   Next Post Next
  #1  
Old 03-28-2010, 06:52 AM
Amygdala Amygdala is offline
Member
 
Join Date: Nov 2009
Posts: 97
Default How to have icons for both iPhone and iPad? Here's how!

Hi guys!

I got a PM from a dev asking how to include icons for both iPhone and iPad in the same app. Doing the upgrade of LabyMania for iPad, I had this concern. In case someone had the same problem, here is the sollution:

First things first: The icon sizes are for iPhone 57*57 - and iPad 72*72

Right... Next is, for iPhone, the icon in the bundle must be named Icon.png - so this is the 57*57 icon. The one for iPad can actually be named whatever you want. The trick is pointing to the right files in your info.plist. Step by step:

- Backup your old info.plist!
- Open info.plist in a text editor - not XCode.
- remove any CFBundleIconFile and CFBundleIconFiles entries in the info.plist
- Add the following (substitute your filename for the iPad icon...):

Code:
<key>CFBundleIconFiles</key>
	<array>
		<string>Icon.png</string>
		<string>Icon72.png</string>
	</array>
- Make sure both icon files (in this case Icon.png and Icon72.png) are copied to the bundle.
- Done!

When displaying on iPhone, Icon.png is used. When on iPad, the OS determines the correct one based on the size.

- A
Reply With Quote

 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


iPhone Game Reviews | iPhone Apps

All times are GMT -5. The time now is 09:46 AM.