在UILabel中制作表情符号灰度 [英] Make emoji symbols grayscale in UILabel
问题描述
我想在 UILabel中使用Apple的内置表情符号字符(特别是几个表情符号,例如
\\\ -415)
/ code>但我希望emojis以灰度渲染。
I would like to use Apple's built-in emoji characters (specifically, several of the smileys, e.g. \ue415)
in a UILabel
but I would like the emojis to be rendered in grayscale.
我希望它们在 UILabel
中保留字符(无论是纯文本还是归属都可以)。我不是在寻找混合图像/字符串解决方案(我已经拥有)。
I want them to remain characters in the UILabel
(either plain text or attributed is fine). I'm not looking for a hybrid image / string solution (which I already have).
有谁知道如何实现这一目标?
Does anyone know how to accomplish this?
推荐答案
我知道你说你不是在寻找一个混合图像解决方案,但我一直在追逐这条龙一段时间,我能做到最好的结果想出一个混合动力车。为了防止我的解决方案对您的旅程更有帮助,我将其包含在此处。祝你好运!
I know you said you aren't looking for a "hybrid image solution", but I have been chasing this dragon for a while and the best result I could come up with IS a hybrid. Just in case my solution is somehow more helpful on your journey, I am including it here. Good luck!
这篇关于在UILabel中制作表情符号灰度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!