Amygdala
03-28-2010, 06:52 AM
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 (http://www.amygdala.dk/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...):
<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
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 (http://www.amygdala.dk/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...):
<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