在 Xcode 中制作 iPhone 应用程序时,如何制作应用程序图标而无需手机添加默认的玻璃效果眩光?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1647395/
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
When making an iPhone App in Xcode, how do you make an app icon WITHOUT the phone adding the default glass effect glare?
提问by Steve Thompson
I've seen many apps in the app store who's icons on the iPhone Springboard do not have the default rounded corners and "glass effect" that are created by default when I just add a 57x57 png to my resources and specify it in the plist. Does anyone know how to NOT get the iPhone to add the attributes to my application icon image when I compile and load it on the iPhone?
我在应用程序商店中看到许多应用程序在 iPhone Springboard 上的图标没有默认的圆角和“玻璃效果”,当我将 57x57 png 添加到我的资源并在 plist 中指定时,默认情况下会创建这些。有谁知道当我在 iPhone 上编译和加载它时,如何不让 iPhone 将属性添加到我的应用程序图标图像中?
回答by Michael Baldry
If you go edit your info.plist file, there is a property called UIPrerenderedIcon, it'll be set to false, if you change it to true, the phone won't process your icon before displaying it. You'll also have to round the corners yourself as well I believe.
如果你去编辑你的 info.plist 文件,有一个名为 UIPrerenderedIcon 的属性,它会被设置为 false,如果你将它更改为 true,手机将不会在显示之前处理你的图标。我相信你也必须自己绕过拐角。
take a look at: http://iosdevelopertips.com/general/remove-shine-gloss-effect-on-iphone-icon.html
看看:http: //iosdevelopertips.com/general/remove-shine-gloss-effect-on-iphone-icon.html
回答by inked
It's all in what you search for: flat iphone icon
这一切都在您搜索的内容中:平面 iphone 图标
Add this to info.plist:
将此添加到 info.plist:
UIPrerenderedIcon : true
UIPrerenderedIcon : 真
Brandon might appreciate a thank you: http://blog.quazie.net/2009/05/flat-iphone-icon-aka-get-rid-of-icon-shine/
布兰登可能会感谢您:http: //blog.quazie.net/2009/05/flat-iphone-icon-aka-get-rid-of-icon-shine/
回答by ceejayoz
Set UIPrerenderedIcon
in your info.plist
to true
.
将UIPrerenderedIcon
您设置info.plist
为true
.
回答by Jimbola
As a key in plist this is now "Icon already includes gloss effects" YES or NO, where if your select YES XCode does not apply the gloss effect..
作为 plist 中的一个关键,现在是“图标已经包含光泽效果”是或否,如果您选择是 XCode 不应用光泽效果..