Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I specify both icons for a universal iPhone/iPad app?

Tags:

iphone

ipad

I hope to create a single app that supports both the iPhone and the iPad. The app works in the simulator for both devices as desired. Now I'm trying to build and deploy it. I set the "Icon File" in the plist to the 57x57 .png image and when I build and try to submit the app ItunesConnect complains about needing a 72x72 .png image for the iPad. If I specify the "Icon File" to the 72x72 .png ItunesConnect complains about needing a 57x57 image for the iPhone. How do I specify both icons in a single plist?

like image 496
byamabe Avatar asked Mar 19 '10 21:03

byamabe


People also ask

How do I separate Iphone combined icons?

To do this on your iPhone:Hold your finger down on any app icon until they all start to wiggle. At this point you can hold your finger down on the icons and drag them around the screen to re-arrange them. For the ones in folders, tap on the folder. you can now drag those icons out of the folders on to the main screen.

Why do I have 2 icons for the same app Iphone?

The reason Apple now lets you arrange multiple copies of the same app is because of iOS 15's new Focus features. With Focus, users can disable home screen pages depending on which focus mode they are in. So, you can set up different modes for work and relaxing.


1 Answers

Add a CFBundleIconFiles key of type Array to your Info.plist. The array should contain 2 string items: the filenames of the two icons. The OS will then automatically choose the correct icon for each platform based on their pixel dimensions.

You can keep the CFBundleIconFile key and have it point to the icon file for the iPhone for 3.0/3.1 compatibility.

Update May 2010: Apple now has Technical Note explaining this in great detail: Technical Q&A QA1686 – App Icons on iPad and iPhone

like image 195
Ole Begemann Avatar answered Oct 16 '22 23:10

Ole Begemann