具有透明背景的 iOS 应用图标在设备上显示黑色背景

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22858501/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 23:54:16  来源:igfitidea点击:

iOS app icon with transparent background showing black background on device

iosbackgroundiconstransparency

提问by Fengson

I have added an icon to my app. It has rounded edges and no background. The problem is that when I run an app on my device (iPhone 5) the icon has a black background behind the edges as if it wasn't transparent. Any solutions?

我在我的应用程序中添加了一个图标。它有圆形边缘,没有背景。问题是当我在我的设备(iPhone 5)上运行一个应用程序时,图标的边缘后面有一个黑色背景,好像它不透明。任何解决方案?

回答by Lex Webb

From the apple developer website after a quick search:

快速搜索后从苹果开发者网站:

Avoid transparency. An app icon should be opaque. If the icon's boundaries are smaller than the recommended sizes—or you use transparency to create “see-through” areas—the resulting icon can appear to float on a black background, which tends to look especially unattractive on the beautiful wallpapers that users choose.

避免透明。应用程序图标应该是不透明的。如果图标的边界小于推荐的尺寸——或者你使用透明度来创建“透明”区域——生成的图标可能看起来漂浮在黑色背景上,这在用户选择的漂亮壁纸上看起来特别没有吸引力。

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/

Edit: Also, check the related questions before you confirm your post - Is is possible to use transparency in an iPhone app icon?

编辑:另外,在确认您的帖子之前检查相关问题 -是否可以在 iPhone 应用程序图标中使用透明度?

回答by Orsos Patrick

On IOS use just square icons, if you use rounder icons you will have black margin black background.

在 IOS 上只使用方形图标,如果您使用圆形图标,您将获得黑色边缘黑色背景。