如何在仅适用于iPhone的应用程序的XCode 4.3中指定iPad Retina图标? [英] How do I specify an iPad Retina icon in XCode 4.3 for an iPhone-only app?

查看:92
本文介绍了如何在仅适用于iPhone的应用程序的XCode 4.3中指定iPad Retina图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iPhone应用程序图标在iPhone / Retina和iPad中显示正常。但是在iPad视网膜(模拟器和设备)上,我得到一个显然包含应用程序开始屏幕的图标:

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:

鉴于我的应用程序仅适用于iPhone(不是通用),没有Xcode 4.3中的选项添加iPad视网膜图标。

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.

如何在iPad Retina设备上正确显示我的应用程序图标?

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

推荐答案

在Xcode中,添加图标和启动图像的目标摘要界面只是Info.plist文件的图形界面。当您仅制作iPhone目标时,iPad部分的图形界面将被隐藏。要将信息添加到图形界面未涵盖的Info.plist文件,请移至信息选项卡并在其中输入。要添加Retina iPad图标,请在Info部分的Icon文件数组中添加一个名为Icon-72@2x.png和Icon-Small-50@2x.png的图标。同时使用适当的名称为您的Xcode项目和目标添加实际的144 x 144和100 x 100 png表示。

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.

这篇关于如何在仅适用于iPhone的应用程序的XCode 4.3中指定iPad Retina图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆