美文网首页
UIKit框架中的NSAttributedString.h

UIKit框架中的NSAttributedString.h

作者: 方圆十里不留母狗 | 来源:发表于2016-04-17 23:29 被阅读117次

在UIKit框架 中的NSAttributedString.h头 件中。

NSFontAttributeName字体NSParagraphStyleAttributeName设置段落样式

NSForegroundColorAttributeName字体颜NSBackgroundColorAttributeName背景NSStrikethroughStyleAttributeName删除线

NSUnderlineStyleAttributeName下划线NSStrokeColorAttributeName

设置 字描边颜 ,需要和NSStrokeWidthAttributeName设置描

边宽度,这样就能使 字空

NSStrokeWidthAttributeName设置描边宽度NSShadowAttributeName

设置阴影,单独设置不好使,必须和其他属性搭配才好使。

和这三个任 个都好使,NSVerticalGlyphFormAttributeName,

NSObliquenessAttributeName,NSExpansionAttributeName

NSUnderlineColorAttributeName下划线颜NSStrikethroughColorAttributeName删除线颜NSObliquenessAttributeName设置字体倾斜NSExpansionAttributeName设置 本扁平化

该属性所对应的值是 个NSNumber对象(整数)。0表 横排 本。

1表 竖排 本。在iOS中,总是使 横排 本,0以外的值都未定义

相关文章

网友评论

      本文标题:UIKit框架中的NSAttributedString.h

      本文链接:https://www.haomeiwen.com/subject/piaolttx.html