关于Icon.png设置的官方文档

关于Icon.png设置的官方文档,第1张

概述Technical Q&A QA1686 引用网址:http://developer.apple.com/library/ios/#qa/qa1686/_index.html App Icons on iPad and iPhone Q: How are the icon files in my application bundle used on iPad and iPhone? A: How

Technical Q&A QA1686

引用网址:http://developer.apple.com/library/ios/#qa/qa1686/_index.html

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.

important: Icons marked with "required" must be supplIEd in your application bundle.

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

114x114

Icon@2x.png

Home screen for iPhone 4 High Resolution

72x72

Icon-72.png

Home screen for iPad compatibility

29x29

Icon-Small.png

Spotlight and Settings

50x50

Icon-Small-50.png

Spotlight for iPad compatibility

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

58x58

Icon-Small@2x.png

Spotlight and Settings for iPhone 4 High Resolution

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.

Back to Top iPad-only Apps

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

table 2  iPad-only apps icon requirements.
App Store and Home screen on iPad

Spotlight on iPad

Settings on iPad

figure 5.

Back to Top Universal Apps

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

table 3  Universal apps icon requirements.
App Store and the Home screen on iPhone/iPod touch

Settings on iPad and iPhone,and Spotlight on iPhone

figure 4.

Back to Top 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,sans-serif; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top;">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.

Note: If you don't provIDe one of the Listed optional icons,the system will automatically scale one of your existing icons to an appropriate size. However,it is strongly recommended that your application supply all the icons Listed with specific sizes needed.

Back to Top

document Revision History 总结

以上是内存溢出为你收集整理的关于Icon.png设置官方文档全部内容,希望文章能够帮你解决关于Icon.png设置的官方文档所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1093969.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)