如何设置iPhone3的正常图标和iPhone 4的Retina [英] How to setup normal Icon for iPhone3 and Retina for iPhone 4

查看:152
本文介绍了如何设置iPhone3的正常图标和iPhone 4的Retina的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过将以下文件添加到您的xcode项目,我听到了某种解决方法:

I heard somewhere of an workaround by adding the following files to your xcode project:


  • Icon.png - 57x57像素的应用程序图标标准分辨率iPhone

  • Icon@2x.png - 用于高分辨率iPhone 4的114x114像素应用程序图标

  • Icon-72.png - 72x72像素应用程序图标for iPad

  • Icon-Small.png - 标准分辨率iPhone的29x29像素设置图标

  • Icon-Small@2x.png - 58x58像素设置icon适用于高分辨率iPhone

  • Icon-Small-50.png - 适用于iPad的50x50像素设置图标

  • Icon.png - 57x57 pixels application icon for standard resolution iPhone
  • Icon@2x.png - 114x114 pixels application icon for high resolution iPhone 4
  • Icon-72.png - 72x72 pixels application icon for iPad
  • Icon-Small.png - 29x29 pixels settings icon for standard resolution iPhone
  • Icon-Small@2x.png - 58x58 pixels settings icon for high resolution iPhone
  • Icon-Small-50.png - 50x50 pixels settings icon for iPad

然后将CFBundleIconFile设置为Icon(无扩展名)。

Then setup your CFBundleIconFile to "Icon" (without extention).

编译器将发出警告,因为您的图标没有扩展名。如果你只是忽略它 - 它会像魅力一样工作 - 直到你想要上传你的二进制文件!

The compiler will put a warning because your icon does not have an extention. If you just ignore it - it will work like a charm - UNTIL YOU WANT TO UPLOAD YOUR BINARY!

如果你通过网络接口上传你的二进制文件一切正常 - 但是如果你使用apploader它不会上传你的应用程序,因为缺少扩展..

If you upload your binary through webinterface everything is working fine - but if you use the "apploader" it will not upload your app because of the missing extention..

有一种已知的方法如何正确设置图标,以便你可以使用它对于iPhone3和iPhone4?

is there a known way how to setup correctly the icons so you can use it for iPhone3 and iPhone4?

iPhone 3.2及更高版本有一个CFBundleIconFiles键 - 是否可以同时使用它们?

There is a "CFBundleIconFiles" Key for iPhone 3.2 and later - is it possible to use both?

推荐答案

参见Apple的技术Q& A QA1686 ,其中描述了每种设备所需的各种图标大小的确切命名约定,Info.plist键和其他详细信息。

See Apple's Technical Q&A QA1686 which describes the exact naming conventions, Info.plist keys, and other details for the various icon sizes required for each device.

这篇关于如何设置iPhone3的正常图标和iPhone 4的Retina的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆