zoukankan      html  css  js  c++  java
  • 去除iPhone icon的光晕效果

        用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.

  • 相关阅读:
    Windows phone 7 OpenSource Project
    编程之美阅读笔记
    Java多线程中读写不一致问题
    pytorch性能瓶颈检查
    贪心会议安排
    网络编程之libevent
    笔记:自动求导【动手学深度学习v2】
    测试
    AnimeGAN+Flask部署过程
    手写哈希表
  • 原文地址:https://www.cnblogs.com/secbook/p/2655409.html
Copyright © 2011-2022 走看看