是否可以在 iPhone 应用程序图标中使用透明度?
我为我的应用程序创建了一个 57×57 圆形图标(无光泽),其圆外具有透明度。 我可以在模拟器和 iPhone 上成功安装该应用程序。 它工作得很好,而且看起来很棒。
但是,我可以向 Apple 提交透明的图标吗? 他们会接受吗? 我找不到任何图标具有透明度的应用程序。 相反,他们使用一种伪透明 - 没有光泽的深黑色背景。
I created a 57×57 circular icon (without shine) which has transparency outside of the circle for my app. I can successfully install the app on Simulator and iPhone. It works fine, and looks great.
However, can I submit an icon with transparency to Apple? Will they accept it? I can't find any apps which have transparency in their icon. Instead, they use a kind of pseudo-transparency - a jet black background with no shine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
自从提出这个问题以来,苹果可能已经更新了界面指南,但现在明确不允许透明度。 在这里查看更多内容:
https://developer.apple.com/ ios/人机界面指南/icons-and-images/app-icon/
Apple may have updated the interface guidelines since this question was asked, but transparency is now expressly not allowed. See more here:
https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/
今天尝试在 iTunes Connect 中准备应用程序更新时,我上传了 RGB 8 位/通道颜色模式的 1 层 1024x1024 PNG。 我收到一条错误消息,指出:
这是 App Store 于 2015 年 1 月 22 日发布的规则。 我包括一个屏幕截图。
When trying to prepare an app update in iTunes Connect today I uploaded a 1 layer 1024x1024 PNG in RGB 8bits/channel color mode. I got an error message stating:
That's the rule for the App Store as recently as 2015/01/22. I'm including a screenshot.
我为一位客户研究过这个问题,他想要一个圆形透明图标来匹配他公司的徽标。 以下是我发现的内容:
512x512 iTunes 图标以 JPEG 或 TIFF 格式上传,这些格式不支持透明度,因此您必须为圆圈制作一个方形背景。 由于主屏幕图标应该看起来与大图标完全相同,因此您的主屏幕图标也必须具有相同的背景。
正如布兰登建议 您可以使用带有黑色背景的预渲染图标,但您会受到 App Store 审核者的摆布。 文档说你的主屏幕图标必须是“扁平的,方形图像图标,大小为 57x57 像素”(我的重点)。 您可能会使用黑色背景的圆形图标,但这实际上取决于审阅者如何测试该要求。 如果他们不检查,或者只检查 Alpha 通道是否处处都是 100%,您可能会侥幸逃脱,但如果他们根据图标是否看起来是方形来决定,则不会。
圆形图标与用户手机上的所有其他图标相比看起来很奇怪,因此无论如何这可能都是一个坏主意。
I've looked into this for a client who would like a circular transparent icon to match his company's logo. Here's what I've found:
The 512x512 iTunes icon is uploading in JPEG or TIFF format, which don't support transparency, so you'd have to make up a square background for your circle. Since the home screen icon is supposed to look exactly like the large icon, your home screen icon will also have to have the same background.
As brandon suggests you could use a pre-rendered icon with a black background, but you'd be at the mercy of the App Store reviewers. The docs say your home screen icon must be a "flattened, square-image icon that is 57x57 pixels" (my emphasis). You might get away with a circular icon with a black background, but it really depends on how the reviewer tests that requirement. You might get away with it if they don't check, or only check that the alpha channel is 100% everywhere, but won't if they decide based on whether the icon looks square.
A circular icon will look odd next to all the other icons on the users' phones, so it's probably a bad idea anyway.
对于该应用程序,您可以使用透明 PNG 作为图标。 当您上传到 itunes 商店时,他们需要 .jpg,当然它没有透明度。
至于他们是否会接受带有不合格形状图标的应用程序,也许,也许不会。 他们可能会批准一次,然后拒绝升级,这可能取决于他们是否注意并注意到该图标。
For the app, you can use your transparent PNG as the icon. When you upload to the itunes store, they require a .jpg which of course has no transparency.
As for if they will accept your app with a substandard shaped icon, maybe, maybe not. The could approve it one time and then reject an upgrade, it will probably depend if they are paying attention and notice the icon or not.
将所有透明区域设为黑色。 然后将值为“YES”的 UIPrenderedIcon 键添加到您的应用程序 Info.plist 中。
否则它会在用户手机上显得闪亮。
Make all of your transparent areas black. Then add a UIPrerenderedIcon key with a value of "YES" to your applications Info.plist.
Otherwise it will appear shiny on the users phone.
是的你可以。 我的许多带有包含 Alpha 通道的图标的应用程序都已获得批准(我很懒或忘记删除 Alpha 通道)。 但您不应该在图标中使用透明像素。
Yes, you can. Many my apps with icons contains alpha channel are approved (I'm lazy or forgot to remove the alpha channels). But you shouldn't use transparent pixels in the icons.