iPhone 图标大小
我正在为 iPhone 开发一个应用程序,以支持多种设备,iPhone 2-4。我遇到了应用程序图标的问题,因为它在 iPhone 4 模拟器中显示为像素化,因此准确地说,我使用了更高分辨率 (300 x 300) 的新图像。在模拟器上,iPhone 4 和 iPhone 设备模拟器的显示效果都很好。然而,当我将我的应用程序移植到 iPhone 3 实际设备时,图标根本没有显示,而是得到一个空白的白色图标。我还没有 iPhone 4,所以我无法判断物理设备上是否会发生同样的问题。
我不确定要使图标在 iPhone 4 及更早版本的设备上完美显示的最佳尺寸/dpi 是多少?如果可能的话,将不胜感激。
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.
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..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
对于较旧的设备,请将 57x57 图标另存为
Icon.png
。对于 iPhone 4,请将您的 114x114 图标另存为[电子邮件受保护]
。图像分辨率根本不重要;只有像素尺寸很重要。还有其他尺寸可供选择,例如 Spotlight/Settings 图标和 iPad 图标。 库文档。
For older devices, save your 57x57 icon as
Icon.png
. For the iPhone 4, save your 114x114 icon as[email protected]
. The image resolution doesn't matter at all; only the pixel dimensions matter.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.
近年来,随着 iOS 设备系列变得更加复杂,以下是当前的图标列表及其对每个平台的要求:
iOS 7+
iPhone 和 iPod touch
这两种尺寸都是必需的:
iPad
这两种尺寸都是必需的:
App Store
创建两种尺寸的应用程序图标的大版本,以便在所有设备上看起来都不错:
Spotlight 搜索结果在 iPhone、iPod touch 和 iPad 上(推荐)
创建以下两种尺寸的图标:
iPhone、iPod touch 和 iPad 上的设置(推荐 /wSB)
在以下两种尺寸:
iOS 6.1-
仅限 iPhone
仅限 iPad
通用应用程序
*(/wSB) = 推荐,如果您有一个设置捆绑包,否则可选但推荐
As the iOS device range got a whole lot more complicated in recent years, here is a current list of icons and their requirements for each platform:
iOS 7+
iPhone and iPod touch
Both of these sizes are required:
iPad
Both of these sizes are required:
App Store
Create a large version of your app icon in two sizes so that it looks good on all devices:
Spotlight search results on iPhone, iPod touch, and iPad (recommended)
Create an icon in the following two sizes:
Settings on iPhone, iPod touch, and iPad (recommended /wSB)
Create an icon in the following two sizes:
iOS 6.1-
iPhone Only
iPad only
Universal Apps
*(/wSB) = Recommended if you have a Settings bundle, otherwise optional but recommended
红色,
请遵循以下准则:http:// developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
我没有在 iOS4 模拟器上看到像素化问题,就像您使用最初为 iOS3+ 编写的应用程序所做的那样带有标准的 57x57 图标。
Red,
Please follow these guidelines: http://developer.apple.com/iphone/library/documentation/userexperience/conceptual/mobilehig/IconsImages/IconsImages.html
I have not seen the pixelated issue on the iOS4 simulator like you did using an app that was originally written for iOS3+ with a standard 57x57 icon.
我已将所有正确命名、大小正确的图像放入 github 存储库中,因此不会造成混淆。
https://github.com/FattusMannus/iOS-Development-Image-Placeholders
只需将它们下载为 zip 文件,编辑它们并将它们复制到您的项目中
即可 AH
Ive put all the images named correctly at the correct size into a github repo, so there can be no confusion.
https://github.com/FattusMannus/iOS-Development-Image-Placeholders
Just download them as a zip, edit them and copy them into your project
AH
您可以在 plist 中的“图标文件”下设置各种图标图像名称。
You can set the various icon image names in the plist, under "icon files".
确保“Icon.png”和“[电子邮件受保护]”大写,否则应用程序存档将无法通过验证过程。
Make sure that "Icon.png" and "[email protected]" are capitalized or else the application archive will not pass the validation process.