简体   繁体   中英

How do I specify an iPad Retina icon in XCode 4.3 for an iPhone-only app?

My iPhone app icon shows up fine in iPhone/Retina and iPad. But on iPad retina (simulator and device) I get an icon that apparently contains the app's start screen:

在此输入图像描述

Given that my app is designed for iPhone only (not 'Universal'), there is no option in Xcode 4.3 to add an iPad retina icon.

How can I get my app's icon to display correctly on iPad Retina devices?

In Xcode the target summary interface where you add your icons and launch images is merely a graphical interface to the Info.plist file. When you make a iPhone only target, the graphical interface for the iPad portion is hidden. To add information to the Info.plist file that isn't covered by the graphical interface move to the Info tab and enter it there. To add the Retina iPad icons add an icon named Icon-72@2x.png and Icon-Small-50@2x.png to the Icon files array in the Info section. Also add actual 144 x 144 and 100 x 100 png representations of your icon with the proper name to your Xcode project and the target.

I've just had this problem with an app too, and when I went to edit the Info.plist file found that Default@2x.png was in the icon list - no idea how it got there, but this project has been going on a while so could be a result of one too many XCode upgrades.

Removing it from the entries in the plist has fixed the problem on the retina iPad too. Am still going to add the extra iPad icons in just in case, but if others are having the problem it is worth checking what XCode has put in those entries.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM