简体   繁体   English

应用程序图标在 iphone 设备上更改其背景颜色

[英]application icon change its background color at iphone device

I have an icon.png which has white background with a blue faced cartoon.我有一个 icon.png,它具有白色背景和蓝面卡通。 Something like the face of this image.有点像这张图片的脸。

But, when i see it in simulator/device than its background color change from white to black with blue face at always.但是,当我在模拟器/设备中看到它时,它的背景颜色总是从白色变为黑色,并带有蓝色的脸。

Does iphone change it to provide the aero effect? iphone会改变它以提供航空效果吗?

Ehm no, it doesn't... Are you sure the icon.png has a white background and is not transparent ?嗯,不,它没有......你确定 icon.png 有白色背景并且不透明吗? And what are you using this for?你用这个做什么? Is the icon.png being used in your app itself, or is it the icon of your application? icon.png 是在您的应用程序本身中使用,还是您的应用程序的图标?

If the icon.png is transparent , it might be caused by the background color of the UIView you are using it in. I suggest changing the icon.png or changing the background color of the view.如果 icon.png 是透明的,可能是你使用的 UIView 的背景颜色造成的。建议更改 icon.png 或更改视图的背景颜色。

Thanks @Anstwan van Houdt.谢谢@Anstwan van Houdt。 After your reply, i search iphone app icon against transparency and found below this link.在您回复后,我搜索 iphone 应用程序图标不透明,并在链接下方找到。 It states that if we make a icon transparent that it would give black background color by default.它指出,如果我们使图标透明,则默认情况下它会给出黑色背景颜色。

So, better we give it.所以,我们最好给它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM