UILabel基于自定义线性渐变的文本颜色 [英] UILabel text color based on custom linear gradient
本文介绍了UILabel基于自定义线性渐变的文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我想基于在photoshop中的渐变设置UILabel的文本颜色。我有梯度的rgb值,{211,119,95}和{199,86,56}。这可能吗?
So I want to set the text color for a UILabel based on a gradient made in photoshop. I have the rgb values for the gradient, {211,119,95} and {199,86,56}. Is this possible? How can I do it?
推荐答案
您可能需要使用以下可自定义的标签之一:
You might want to use one of these customizable labels:
- FXLabel
- LEffectLabel
- THLabel
这篇关于UILabel基于自定义线性渐变的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文