简体   繁体   English

如何为通用iPhone / iPad应用程序指定图标?

[英]How to specify icons for a universal iPhone/iPad app?

如何为所有4个版本(icon.png,icon @ 2x.png ...等)的通用iPhone / iPad应用程序指定图标?

在此处输入图片说明

I have live universal app on app store. 我在应用商店上有直播通用应用。 Refer attached image for the image names. 有关图像名称, 请参阅附件图像

Icon-Small is used in Settings app, Icon is shown in iPhone Home screen and Icon-72 is shown in iPad Home screen. Icon-Small用于“设置”应用程序, Icon显示在iPhone主屏幕中, Icon-72显示在iPad主屏幕中。

Refer second image for the image sizes . 有关图像尺寸,请参阅第二张图像

在此处输入图片说明

First you have to declare App Launcher icon images 首先,您必须声明App Launcher图标图像

Device      size                   retina display size
iphone     57*57  (icon.png)         114*114 (icon@2x)
iPad        72*72                    144*144

Launch Image size
Device      size        retina display size
iphone     320*480           640*960
iphone 5    640*1136 
iPad        768*1024         1536*2048

And to specifies your icons go to the Target then summary then you browse icon (manually) for all the device name doesn't matter but name not be same. 要指定您的图标,请转到目标,然后进行摘要,然后浏览图标(手动),因为所有设备名称均无关紧要,但名称不相同。

Please refer the default icon names.. 请参考默认图标名称。

 Iphone(non retina) :icon.png 

Iphone(retina) :icon@2x.png Iphone(视网膜):icon@2x.png

Ipad(Non retina) :Icon-72.png Ipad(非视网膜):Icon-72.png

IPad(Retina) :Icon-72@2x.png iPad(Retina):Icon-72@2x.png

Add a CFBundleIconFiles key of type Array to your Info.plist. 将Array类型的CFBundleIconFiles键添加到Info.plist。 The array should contain 2 string items: the filenames of the two icons. 该数组应包含2个字符串项:两个图标的文件名。 The OS will then automatically choose the correct icon for each platform based on their pixel dimensions. 然后,操作系统将根据每个平台的像素尺寸自动选择正确的图标。

Follow this link FOR UNIVERSAL APP ICON 点击此链接获得通用应用程序图标

图像资产应用程序

I think you can create app icon set in images.xcassets and that will save a lot of time 我认为您可以在images.xcassets中创建应用程序图标集,这样可以节省大量时间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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