NSFontAttributeName; //字体,value是UIFont对象NSParagraphStyleAttributeName;//绘图的风格(居中,换行模式,间距等诸多风格),value是NSParagraphStyle对象NSForegroundColorAttributeName;// 文字颜色,value是UIColor对象NSBackgroundColorAttributeName;// 背景色,value是UIFontNSLigatureAttributeName; // 字符连体,value是NSNumberNSKernAttributeName; // 字符间隔NSStrikethroughStyleAttributeName;//删除线,value是NSNumberNSUnderlineStyleAttributeName;//下划线,value是NSNumberNSStrokeColorAttributeName; //描绘边颜色,value是UIColorNSStrokeWidthAttributeName; //描边宽度,value是NSNumberNSShadowAttributeName; //阴影,value是NSShadow对象NSTextEffectAttributeName; //文字效果,value是NSStringNSAttachmentAttributeName;//附属,value是NSTextAttachment 对象NSLinkAttributeName;//链接,value是NSURL or NSStringNSBaselineOffsetAttributeName;//基础偏移量,value是NSNumber对象NSUnderlineColorAttributeName;//下划线颜色,value是UIColor对象NSStrikethroughColorAttributeName;//删除线颜色,value是UIColorNSObliquenessAttributeName; //字体倾斜NSExpansionAttributeName; //字体扁平化NSVerticalGlyphFormAttributeName;//垂直或者水平,value是 NSNumber,0表示水平,1垂直
iOS NSAttributedString所有文本属性详解
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 前言: 在iOS中,显示一段字符串通常会使用UILabel,但是它对文字的展现方式比较单一,有的时候需要展...
- http://blog.csdn.net/u013305082/article/details/48290809