注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

云水禅心

淡若秋菊何妨瘦, 清到梅花不畏寒.

 
 
 

日志

 
 

App Icons on iPad and iPhone(转)  

2011-04-20 16:42:10|  分类: iphone |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
http://developer.apple.com/library/ios/#qa/qa1686/_index.html

Technical Q&A QA1686

App Icons on iPad and iPhone

Q:  How are the icon files in my application bundle used on iPad and iPhone?

A: How are the icon files in my application bundle used on iPad and iPhone?

Below are guidelines for handling icon files for iPhone-only apps, iPad-only apps, and universal apps.

iPhone-only Apps

Include the following in your application's Resources group in the Xcode project:

Table 1  iPhone-only apps icon requirements.

Image Size (px)

File Name

Used For

Required Status

Notes

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

File should be in png format, but name it without the .png extension

57x57

Icon.png

App Store and Home screen on iPhone/iPod touch

Required

<None>

114x114

Icon@2x.png

Home screen for iPhone 4 High Resolution

Optional but recommended

<None>

72x72

Icon-72.png

Home screen for iPad compatibility

Optional but recommended

<None>

29x29

Icon-Small.png

Spotlight and Settings

Optional but recommended

<None>

50x50

Icon-Small-50.png

Spotlight for iPad compatibility

Recommended if you have a Settings bundle, otherwise optional but recommended

<None>

58x58

Icon-Small@2x.png

Spotlight and Settings for iPhone 4 High Resolution

Recommended if you have a Settings bundle, otherwise optional but recommended

<None>

Your Resources group should look similar to Figure 1:

Figure 1  Add files to Resources group

Except for iTunesArtWork icon, list the names of each of these files in the Icon files entry in the Info.plist, in the order shown in the table. Follow the steps in "Add Icon files in Info.plist" section below. See Figure 4.

iPad-only Apps

Include the following in your application's Resources group in the Xcode project:

Table 2  iPad-only apps icon requirements.

Image Size (px)

File Name

Used For

Required Status

Notes

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

File should be in png format, but name it without the .png extension

72x72

Icon-72.png

App Store and Home screen on iPad

Required

<None>

50x50

Icon-Small-50.png

Spotlight on iPad

Optional but recommended

<None>

29x29

Icon-Small.png

Settings on iPad

Recommended if you have a Settings bundle, otherwise optional but recommended

<None>

Except for iTunesArtWork icon, list the names of each of these files in the Icon files entry in the Info.plist, in the order shown in the table. Follow the steps in "Add Icon files in Info.plist" section below. See Figure 5.

Universal Apps

Include the following in your application's Resources group in the Xcode project:

Table 3  Universal apps icon requirements.

Image Size (px)

File Name

Used For

Required Status

Notes

512x512

iTunesArtwork

Ad Hoc iTunes

Optional but recommended

File should be in png format, but name it without the .png extension

57x57

Icon.png

App Store and the Home screen on iPhone/iPod touch

Required

<None>

114x114

Icon@2x.png

Home screen for iPhone 4 High Resolution

Optional but recommended

<None>

72x72

Icon-72.png

App Store and Home screen on iPad

Required

<None>

29x29

Icon-Small.png

Settings on iPad and iPhone, and Spotlight on iPhone

Recommended if you have a Settings bundle, otherwise optional but recommended

<None>

50x50

Icon-Small-50.png

Spotlight on iPad

Optional but recommended

<None>

58x58

Icon-Small@2x.png

Spotlight and Settings for iPhone 4 High Resolution

Recommended if you have a Settings bundle, otherwise optional but recommended

<None>

Except for iTunesArtWork icon, list the names of each of these files in the Icon files entry in the Info.plist, in the order shown in the table. Follow the steps in "Add Icon files in Info.plist" section below. See Figure 4.

Add Icon files in Info.plist

To add the Icon files entry you will need to manually edit your Info.plist.

Open your Info.plist in Xcode, and locate the "Icon file" entry. Click on the plus (+) button at the end of the entry to make a new key entry. as shown in Figure 2.

Figure 2  Add a new entry under "Icon file" key

Then, type "Icon files" in the key column (notice the "s" added), or choose "Icon files" from the drop down list, as shown in Figure 3.

Figure 3  Add "Icon files" key in Info.plist

Next, turn down the disclosure triangle on "Icon files" and add the entries for the icons for your application, as shown in Figure 4 and Figure 5:

Figure 4  Add icon file entries for iPhone-only or Universal apps.
Figure 5  Add entries for iPad icon files.


Document Revision History


DateNotes
2010-07-14

Fixed outdated "Add Icon files in Info.plist" section.

2010-07-12

Updated for iOS 4 requirements.

2010-04-09

New document that explains how the icon files in an application bundle are used on iPad and iPhone.





? 2010 Apple Inc. All Rights Reserved. (Last updated: 2010-07-14)

Did this document help you? Yes It's good, but... Not helpful...
  评论这张
 
阅读(1398)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018