如何在 Xcode 5 中关闭图标光泽效果

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18187089/
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-09-15 03:41:49  来源:igfitidea点击:

How to turn off icon gloss effect in Xcode 5

iosxcodeiconsxcode5

提问by Tomasz Szulc

I'm making app and I'm try to turn off icon gloss effect. Earlier in Xcode 4 it was able to turn off icon gloss effect by turn on "Prerenderred" checkbox. Now when i want to use Assets catalog i have to edit .plist file. And i did it. I add key Icon already includes gloss effectsand set to YESbut effect is still on icon. How to disable this effect correctly in new Xcode?

我正在制作应用程序,我正在尝试关闭图标光泽效果。在 Xcode 4 的早期版本中,它可以通过打开“Prerenderred”复选框来关闭图标光泽效果。现在,当我想使用资产目录时,我必须编辑 .plist 文件。我做到了。我添加键Icon already includes gloss effects并设置为YES但效果仍在图标上。如何在新的 Xcode 中正确禁用此效果?

Thank you in advance.

先感谢您。

回答by Tomasz Szulc

The answer is pretty simple when you use .xcassets (Assets). What you have to do is to select your AppIcon collection and on the right pane (Inspector) select Pre-rendered icon. and that's it.

当您使用.xcassets (Assets). 您需要做的是选择您的 AppIcon 集合并在右侧窗格(检查器)上选择Pre-rendered icon。就是这样。

回答by Roozbeh Zabihollahi

Just as Tomasz Szulc described:

正如 Tomasz Szulc 所描述的那样:

  1. In the Project Navigator, Click on project name
  2. In the App Iconssection, press Use Asset Catalog
  3. Click import
  4. Click on the small arrow next to the combo box
  5. In the Attribute Inspector, check iOS icon is pre-rendered
  1. Project Navigator,点击项目名称
  2. 在该App Icons部分,按Use Asset Catalog
  3. 点击导入
  4. 单击组合框旁边的小箭头
  5. Attribute Inspector,检查iOS icon is pre-rendered

Hope that helps.

希望有帮助。

回答by Jitendra

Try to remove the icon from the simulator, clean the build, and try once again to run.

尝试从模拟器中删除图标,清理构建,然后再次尝试运行。