开发者

Format differently specific letter in a CATextLayer?

开发者 https://www.devze.com 2023-03-11 07:11 出处:网络
Is that possible? If not with CA开发者_运维问答TextLAyer, then how can I do that?You can use NSMutableAttributedString in CATextLayer. You can specify different attributes like color, font to differe

Is that possible?

If not with CA开发者_运维问答TextLAyer, then how can I do that?


You can use NSMutableAttributedString in CATextLayer. You can specify different attributes like color, font to different parts of string.


The solution was to break the word to letters and combine it back with 3 different text layers. I will try to post the function i have build for others who needs it.

0

精彩评论

暂无评论...
验证码 换一张
取 消