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.
我创建了一个57×57圆形图标(不发光),透明外圆的应用。我可以成功安装模拟器和iPhone上的应用程序。它工作得很好,看起来很棒。
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.
但是,我可以向苹果提交一个具有透明度的图标吗?他们会接受它吗?我找不到任何有透明度的应用程序。相反,他们使用了一种伪透明——没有光泽的黑色背景。
6 个解决方案
#1
16
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/
自从这个问题被提出以来,苹果公司可能已经更新了界面指南,但现在明确不允许透明度。在这里看到更多:https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/
#2
6
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.
512x512的iTunes图标是用JPEG或TIFF格式上传的,不支持透明度,所以你必须为你的圈子设置一个方形背景。由于主屏幕图标看起来应该和大图标一模一样,所以主屏幕图标也必须具有相同的背景。
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.
正如布兰登建议的那样,你可以使用一个带有黑色背景的预渲染图标,但你会受到应用商店评论者的摆布。文档称,你的主屏幕图标必须是“一个57×57像素的扁平方形图像图标”(我的重点)。您可能会得到一个黑色背景的圆形图标,但这实际上取决于审稿人如何测试该需求。如果他们不检查,或者只检查alpha通道是否为100%,你可能会侥幸过关,但如果他们根据图标是否为方形来决定,你就不会这么做了。
A circular icon will look odd next to all the other icons on the users' phones, so it's probably a bad idea anyway.
在用户手机上的其他图标旁边,一个圆形图标看起来很奇怪,所以这可能是个坏主意。
#3
6
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:
今天在iTunes Connect准备app更新时,我上传了一层1024x1024 PNG的RGB 8bits/channel颜色模式。我收到一条错误消息:
"Images can’t contain alpha channels or transparencies.":
图像不能包含alpha通道或透明图片。
That's the rule for the App Store as recently as 2015/01/22. I'm including a screenshot.
这是最近的2015/01/22应用商店的规则。我包括截图。
#4
3
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.
对于这个应用程序,你可以使用你的透明PNG作为图标。当你上传到itunes商店的时候,他们需要一个。jpg格式当然没有透明度。
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.
至于他们是否会接受你的应用程序不符合标准的形状图标,也许会,也许不会。他们可能会批准一次,然后拒绝升级,这可能取决于他们是否注意到图标。
#5
2
Make all of your transparent areas black. Then add a UIPrerenderedIcon key with a value of "YES" to your applications Info.plist.
让你所有的透明区域都变成黑色。然后向应用程序Info.plist添加一个值为“YES”的UIPrerenderedIcon键。
Otherwise it will appear shiny on the users phone.
否则,它会在用户的手机上闪亮。
#6
0
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.
是的,你可以。我的许多带有图标的应用程序都被批准了(我很懒或者忘记删除alpha通道)。但是你不应该在图标中使用透明像素。
#1
16
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/
自从这个问题被提出以来,苹果公司可能已经更新了界面指南,但现在明确不允许透明度。在这里看到更多:https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/
#2
6
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.
512x512的iTunes图标是用JPEG或TIFF格式上传的,不支持透明度,所以你必须为你的圈子设置一个方形背景。由于主屏幕图标看起来应该和大图标一模一样,所以主屏幕图标也必须具有相同的背景。
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.
正如布兰登建议的那样,你可以使用一个带有黑色背景的预渲染图标,但你会受到应用商店评论者的摆布。文档称,你的主屏幕图标必须是“一个57×57像素的扁平方形图像图标”(我的重点)。您可能会得到一个黑色背景的圆形图标,但这实际上取决于审稿人如何测试该需求。如果他们不检查,或者只检查alpha通道是否为100%,你可能会侥幸过关,但如果他们根据图标是否为方形来决定,你就不会这么做了。
A circular icon will look odd next to all the other icons on the users' phones, so it's probably a bad idea anyway.
在用户手机上的其他图标旁边,一个圆形图标看起来很奇怪,所以这可能是个坏主意。
#3
6
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:
今天在iTunes Connect准备app更新时,我上传了一层1024x1024 PNG的RGB 8bits/channel颜色模式。我收到一条错误消息:
"Images can’t contain alpha channels or transparencies.":
图像不能包含alpha通道或透明图片。
That's the rule for the App Store as recently as 2015/01/22. I'm including a screenshot.
这是最近的2015/01/22应用商店的规则。我包括截图。
#4
3
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.
对于这个应用程序,你可以使用你的透明PNG作为图标。当你上传到itunes商店的时候,他们需要一个。jpg格式当然没有透明度。
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.
至于他们是否会接受你的应用程序不符合标准的形状图标,也许会,也许不会。他们可能会批准一次,然后拒绝升级,这可能取决于他们是否注意到图标。
#5
2
Make all of your transparent areas black. Then add a UIPrerenderedIcon key with a value of "YES" to your applications Info.plist.
让你所有的透明区域都变成黑色。然后向应用程序Info.plist添加一个值为“YES”的UIPrerenderedIcon键。
Otherwise it will appear shiny on the users phone.
否则,它会在用户的手机上闪亮。
#6
0
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.
是的,你可以。我的许多带有图标的应用程序都被批准了(我很懒或者忘记删除alpha通道)。但是你不应该在图标中使用透明像素。