![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NSAttributedString
沐阳_
这个作者很懒,什么都没留下…
展开
-
iOS之富文本
与NSString类似,在iOS中AttributedString也分为NSAttributedString和NSMutableAttributedString,不同的是,AttributedString对象多了一个Attribute的概念,一个AttributedString的对象包含很多的属性,每一个属性都有其对应的字符区域,在这里是使用NSRange来进行描述的。转载 2015-07-06 16:05:44 · 634 阅读 · 0 评论 -
12-富文本 NSMutableAttributedString
一、AttributedString属性// NSFontAttributeName 设置字体属性,默认值:字体:Helvetica(Neue) 字号:12// NSForegroundColorAttributeNam 设置字体颜色,取值为 UIColor对象,默认值为黑色// NSBackgroundCol原创 2015-07-08 19:00:37 · 336 阅读 · 0 评论