MatterGoal
MatterGoal

Reputation: 16430

IPhone application and IPad retina icon

I've created an application for iPhone with icon versions for retina and no-retina display ([email protected] and icon.png). Whenever I try to install this application on an iPad 3 a part of [email protected] is used instead of [email protected]. Have i to upload specific icon for iPad ? and in this case where!? from Xcode 4.3.2 I see only 2 spaces to include icons, but reserved for iPhone version. I suppose that i need to create a new voice into plist file... but I'm not sure and documentation didn't help me.

Upvotes: 2

Views: 1806

Answers (5)

mkrus
mkrus

Reputation: 835

Old question, but with Xcode 6.3, if you use assets catalogs, select AppIcon, tick iPad (for iOS 7 and up) and add your 76x76 and 152x152 icons to the catalog

Upvotes: 1

Rene Berlin
Rene Berlin

Reputation: 1171

When determining the appropriate App-Icon the OS searches the "best fitting size" Icon in the CFBundleIconFiles array or the CFBundleIcons in the Info.plist. If the Default(@2x).png is in one of those arrays, it is selected for best fitting on iPad Retina. Solutions:

  1. Eliminate the Default(@2x).png from this arrays. For the Launch image there is another property. If you do that, the iPhone Retina Icon will be selected.
  2. Optionally add the iPad resolution Icons (72, 72 / 144, 144) to one of those arrays. Then the OS will determine one of those as best fitting.

For the Info.plist keys see also: https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1

Consider, that the naming of those Icon files are only relevant for older iOS versions. In new versions, the OS just searches for sizes in the mentioned arrays.

Upvotes: 1

Chris
Chris

Reputation: 3212

I ran into the same problem. I created the resource files Icon-72.png and [email protected] in the root of the bundle and added them to "Icon files" in the Info page of the target (Info.plist). Strangely, this didn't do the trick.

My final solution was to convert the target temporarily into an universal app, drag the iPad icons into the corresponding slots of the target's summary page and build it. After that, revert the target to an iPhone/iPod touch app, clean it, built it again.

Interestingly, this seems to work.

Upvotes: 7

aashish.acs
aashish.acs

Reputation: 23

I think you should use Icon-72. i used that

Upvotes: 1

Linuxmint
Linuxmint

Reputation: 4746

I would create 2 more icons called

icon~ipad.png
icon@2x~ipad.png

The first one will allow for iPad 1/2, and the second one will allow for Retina iPads (iPad 3).

Adding those 2 icons may be enough. Also, try a Clean & Rebuild as Luke said.

Hope this helps =)

Upvotes: 1

Related Questions