如何在标签栏中放置实际图像?- 迅速 [英] How can I put an actual image in my tabbar? - swift
本文介绍了如何在标签栏中放置实际图像?- 迅速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个实际的 rub color(jpg) 图像,我想将其用作标签栏中的按钮.但是当我使用图像时,它只是蓝色.
I have an actual image in rub color(jpg), that I wanne use as a button in my tabbar. But when I use the image, it is just blue.
我怎样才能覆盖这个?
推荐答案
使用 imageWithRenderingMode
获取图像的 .AlwaysOriginal
渲染并使用它.
Use imageWithRenderingMode
to get an .AlwaysOriginal
rendering of the image and use that.
这篇关于如何在标签栏中放置实际图像?- 迅速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文