iPhone图标大小 [英] iPhone icon size

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

问题描述

我正在开发一款支持iPhone的应用程序iPhone 2-4。我的应用程序图标出现了问题,因为它在iPhone 4 模拟器中显示为像素化,因此我使用了具有更高分辨率(300 x 300)的新图像。在模拟器上,它对iPhone 4和iPhone设备模拟器都很好。但是,当我将我的应用移植到iPhone 3实际设备时,图标根本没有显示,而是我得到一个空白的白色图标。我还没有iPhone 4所以我无法判断物理设备上是否会出现同样的问题。

I am developing an application for iPhone to support multiple devices, iPhone 2-4. I had an issue with the app icon as it was shown pixelated in the iPhone 4 simulator so I have used a new image with higher resolution (300 x 300) to be precise. On the simulator its showing fine for both iPhone 4 and the iPhone device simulators. However, when I ported my app to an iPhone 3 actual device the icon did not show at all and instead I get a blank white icon. I don't have an iPhone 4 yet so I cant tell if the same issue will happen on the physical device.

我不确定什么是最佳尺寸/ dpi用于在iPhone 4和旧设备上完美显示图标?如果可能的话,我将不胜感激。

I am not sure what is the best dimensions/dpi to use for an icon to display perfectly on an iPhone 4 and older devices? Would appreciate a help if possible..

推荐答案

对于旧设备,请将 57x57 图标另存为的icon.png 。对于iPhone 4,将 114x114 图标保存为 Icon@2x.png 。图像分辨率根本不重要;只有像素尺寸很重要。

For older devices, save your 57x57 icon as Icon.png. For the iPhone 4, save your 114x114 icon as Icon@2x.png. The image resolution doesn't matter at all; only the pixel dimensions matter.

还有其他尺寸可供选择,例如Spotlight / Settings图标和iPad图标。有一个完整的列表写在图书馆文档

There are other sizes to cater to, like Spotlight/Settings icons and iPad icons. There's a full list written up in the library documentation.

这篇关于iPhone图标大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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