The Icon and Default Images

本文详细阐述了iOS应用图标的设计规范,包括图标尺寸、样式、提交要求等,并指导开发者如何创建高分辨率图标以适应不同设备和屏幕密度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

 

The icon.png image and Default.png are two key image files. Icon.png acts as your appli- cation’s icon, the image used to represent the application on the SpringBoard home screen. Default.png (also known as your “launch image”) provides the splash screen dis- played during application launch.

 

Unlike Default.png, the icon filename is arbitrary. If you’d rather not use “icon.png,” set the CFBundleIconFile key in your Info.plist file to whatever filename you want to use but be aware that this might cause trouble when submitting your application to App Store; iTunes Connects requires the application to use icon.png (or Icon.png) even if the Info.plist specifies another name.This key is not set by default, so be sure to add a value regardless of the art you use.

 

Apple recommends matching Default.png to your application’s background. Many de- velopers use Default.png to launch images for a logo splash or for a “Please wait” message. These go against Apple’s human interface guidelines (launch images should provide visual continuity, not advertising or excuses for delays) but are perfectly understandable uses. Xcode lets you take screenshots of your application in action using its Organizer window (Window > Organizer). It also offers the option to set one of those shots as your Default.png image.

 

 

The official application icon size is 57-by-57 pixels. SpringBoard automatically scales larger art. Provide flat (not glossy) art with squared corners. SpringBoard smoothes and rounds those corners and adds an automatic gloss and shine effect. If for some compelling reason you need to use prerendered art, set UIPrerenderedIcon to <true/> in your Info.plist file.

 

As with all on/off Info.plist items, make sure to set the value for UIPrerenderedIcon to the Boolean value true (<true/>, the checked box in the Xcode GUI). Using a string for “true” (<string>true</string>) may work on the simulator while producing no ef- fect on the iPhone.Also remember that the 3.0 Xcode property list editor hides the actual key name. Add a field for the “Icon already includes gloss and bevel effects” key and check the box that appears in the value column.

When submitting your application to App Store, you need to create a high-resolution (512-by-512 pixel) version of your icon.Although you can up sample your 57-by-57 icon.png art, it won’t look good. Going the other way allows you to maintain high-quality art that you can compress to your icon as needed. Keep your art simple and compressible. An icon that looks stunning at 512x512 looks muddled and sloppy at 57x57 when overly detailed.

 

 

 

Note

You may include a 29-by-29 pixel image called Icon-settings.png in your project. This image represents your application in the Settings application. Most developers skip this option. If not included, Settings simply scales your icon.png image.

 

 

 

But now , 29-by-29, 57-by-57, 114-by-114(iPhone Retina) ; 50-by-50, 72-by-72, 144-by-144(iPad Retina)

the all pixels are work for retina

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值