Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5404117
  • 博文数量: 763
  • 博客积分: 12108
  • 博客等级: 上将
  • 技术积分: 15717
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-28 21:21
个人简介

业精于勤,荒于嬉

文章分类

全部博文(763)

文章存档

2018年(6)

2017年(15)

2016年(2)

2015年(31)

2014年(14)

2013年(87)

2012年(75)

2011年(94)

2010年(190)

2009年(38)

2008年(183)

2007年(28)

分类:

2011-07-16 10:28:41



App Icons on iPad and iPhone

https://devforums.apple.com/message/190913


This post explains how the icon files in your application bundle are used on iPad and iPhone. Icons marked with "Required" must be supplied in your application bundle. If you don't provide one of the listed optional icons, the system will automatically scale one of your existing icons to an appropriate resolution. However, it's recommended that your application supply the specific resolutions needed.


iPhone-only apps:
1. Include the following in your application bundle:
57 x 57px icon to be used by the App Store and the Home screen on iPhone/iPod touch — Required
29 x 29px icon to be used by Settings and Spotlight — Recommended if you have a Settings bundle, otherwise Optional but Recommended
2. Specify the name of the 57 x 57px icon file in the CFBundleIconFile entry in your Info.plist.



3. Additionally, the 29 x 29px icon must be named "Icon-Small.png"



iPad-only apps:
1. Include the following in your application bundle:
72 x 72px icon to be used by the App Store and the Home screen on iPad — Required
50 x 50px icon to be used by Spotlight on iPad — Optional but Recommended
29 x 29px icon to be used in Settings on iPad — Recommended if you have a Settings bundle
2. List the names of each of these files in the CFBundleIconFiles entry in the Info.plist

To add the CFBundleIconFiles entry you will need to manually edit your Info.plist. First, create a new entry for CFBundleIconFile. Double-click the "CFBundleIconFile" text and add an "s" so it reads "CFBundleIconFiles".




Next, hold down the Control key and click on the row. Go the the "Value Type" menu and change the selection from "String" to "Array".



Finally, turn down the disclosure triangle on "CFBundleIconFiles" and add the entries for the icons for your application.





Universal apps:
1. Include the following in your application bundle:
72 x 72px icon to be used by the App Store and the Home screen on iPad — Required
57 x 57px icon to be used by the App Store and the Home screen on iPhone and iPod touch — Required
50 x 50px icon to be used by Spotlight on iPad — Optional but Recommend
29 x 29px icon to be used in Settings on iPad and iPhone, and Spotlight on iPhone — Recommended if you have a Settings bundle, otherwise Optional but Recommended
2. List the names of each of these files in the CFBundleIconFiles entry in the Info.plist
3. Specify the name of the 57 x 57px icon file in CFBundleIconFile (note no "s", as this setting is picked up on iPhone OS prior to 3.2)
4. Additionally, name the 50 x 50px file "Icon-Small-50.png" and the 29 x 29px icon "Icon-Small.png"






https://devforums.apple.com/message/190913
阅读(1614) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~