iPhone客户端开发笔记(七)

解决App图标问题。

1,iOS对App图标的使用有详细规定:

https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html#//apple_ref/doc/uid/TP40006556-CH14-SW1

三类icon是必须的:

Application icon

App Store icon

Launch image

2,"iOS App Programming Guid"中对Application icon的使用描述。

https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW1

新的iOS版本中,使用CFBundleIconFiles key来管理应用图标。

有些旧的例子程序中,使用了传统的方式管理应用图标,这个必须知道。

If your iPhone app is running in iOS 3.1.3 or earlier, the system does not look for the CFBundleIconFiles key. Instead, it looks for icon files with specific names. TheCFBundleIconFiles key was introduced in iOS 3.2 and is not recognized by earlier versions of the system. Although the sizes of the icons are the same as those in Table 5-2, if your app supports deployment on iOS 3.1.3 and earlier, you must use the following filenames when naming your icons:

  • Icon.png. The name for the app icon on iPhone or iPod touch.

  • Icon-72.png. The name for the app icon on iPad.

  • Icon-Small.png. The name for the search results icon on iPhone and iPod touch. This file is also used for the Settings icon on all devices.

  • Icon-Small-50.png. The name of the search results icon on iPad.

3,"iOS App Programming Guid"中对Launch Image的使用描述。

https://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/App-RelatedResources/App-RelatedResources.html#//apple_ref/doc/uid/TP40007072-CH6-SW12

 

4,总结

作为一个兼容iPhone4以下版本的App,需要提供如下图片:

a,57*57的icon,for iphone3

b,114*114的icon,for iphone4

c,72*72的icon,for ipad

d,320*480的launching image,for ipone3

e,640*960的launching image,for iphone4

在ipad下直接X2使用吧。

接着静等美工作图出来,加入到项目里,大功告成不久矣。

原文地址:https://www.cnblogs.com/tara/p/2363345.html