去除iPhone icon的光晕效果

来源:互联网 发布:江大网络教育主页 编辑:程序博客网 时间:2024/05/01 17:55

    用Xcode创建英语程序的时候,系统会自动给你的icon四角添加圆角效果,并且在icon的上部添加光晕效果,有些时候会使得icon看不太清楚。圆角效果是系统默认的,无法改变。57*57的icon,四角圆角的半径是9、10这样子

 

     但是光晕效果是可选的,可以通过设置来去除,方法如下:

 

    用文本编辑工具打开info.plist, 在键值区域添加如下字段:

 

<key>UIPrerenderedIcon</key><true/>
保存即可。

 

或者在target info里面添加Icon already includes gloss effects并且设置为Yes


转帖内容如下:http://iphonedevelopertips.com/general/remove-shine-gloss-effect-on-iphone-icon.html

Remove Shine / Gloss Effect on iPhone Icon 

 

By default, when building an application with Xcode, your icon will have a round beveling of the corners and a shine added over the top of the icon. The icon below shows how this looks:

You can override this default by following line to you to the Info.plist file. For example, if you prefer to edit Info.plist as a source file, add the following line:

<key>UIPrerenderedIcon</key><true/>

If you are editing Info.plist as an XML file (in Xcode) you can add an entry that looks as follows:

Depending on your configuration and version of Xcode, the option in the Info.plist file may looks as follows:

With the pre-rendered icon set to true, the icon shown above will now look like this:

This preference setting only applies to removing of the shine / glossy effect, the corners of your icon will still be rounded for you.

 

 

 

原创粉丝点击