是否可以在 iPhone 应用程序图标中使用透明度?

发布于 2024-07-23 02:34:44 字数 189 浏览 8 评论 0原文

我为我的应用程序创建了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

不弃不离 2024-07-30 02:34:44

自从提出这个问题以来,苹果可能已经更新了界面指南,但现在明确不允许透明度。 在这里查看更多内容:
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/

格子衫的從容 2024-07-30 02:34:44

今天尝试在 iTunes Connect 中准备应用程序更新时,我上传了 RGB 8 位/通道颜色模式的 1 层 1024x1024 PNG。 我收到一条错误消息,指出:

“图像不能包含 Alpha 通道或透明度。”:

这是 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:

"Images can’t contain alpha channels or transparencies.":

That's the rule for the App Store as recently as 2015/01/22. I'm including a screenshot.

enter image description here

寄离 2024-07-30 02:34:44

我为一位客户研究过这个问题,他想要一个圆形透明图标来匹配他公司的徽标。 以下是我发现的内容:

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.

最笨的告白 2024-07-30 02:34:44

对于该应用程序,您可以使用透明 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.

小红帽 2024-07-30 02:34:44

将所有透明区域设为黑色。 然后将值为“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.

森林很绿却致人迷途 2024-07-30 02:34:44

是的你可以。 我的许多带有包含 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文