如何在iOS Swift中添加彩色图标? [英] how to add colored icon in ios swift?
本文介绍了如何在iOS Swift中添加彩色图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试添加一个彩色图标,当我在标签栏中添加该图标时,它显示的是蓝色,该图标的实际颜色不可见?
I am trying to add an icon which is multicolored and when I added the icon as per in the tab bar, it is showing a single color blue, the actual colors of the icon are not visible?
我应该如何在标签栏中添加彩色图标?
how should I add the colored icon in the tab bar?
推荐答案
在x代码的Assets文件夹中选择您的图像,然后在属性检查器中将 Render As 的值更改为原始图像代替默认" .
In assets folder in x-code select your image and in attribute inspector change value of Render As to "Original Image" instead of "Default".
这篇关于如何在iOS Swift中添加彩色图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文