在iPhone中显示彩色文本

时间:2011-11-29 11:55:54

标签: iphone colors

有没有办法在iPhone without using UIWebView

中显示彩色文字

例如“红蓝绿色的voilet”

所有单个UITextView,UITextField,UILabel或除UIWebview之外的任何内容。

有可能吗?

1 个答案:

答案 0 :(得分:2)

是的,您可以使用NSAttributed字符串,然后将其提供给CATextLayer或AliSoftware's OHAttributedLabel等开源库。

Here's a related question可能会帮到你。

相关问题