1 NSFontAttributeName; //字体,value是UIFont对象
2 NSParagraphStyleAttributeName;//绘图的风格(居中,换行模式,间距等诸多风格),value是NSParagraphStyle对象
3 NSForegroundColorAttributeName;// 文字颜色,value是UIFont对象
4 NSBackgroundColorAttributeName;// 背景色,value是UIFont
5 NSLigatureAttributeName; // 字符连体,value是NSNumber
6 NSKernAttributeName; // 字符间隔
7 NSStrikethroughStyleAttributeName;//删除线,value是NSNumber
8 NSUnderlineStyleAttributeName;//下划线,value是NSNumber
9 NSStrokeColorAttributeName; //描绘边颜色,value是UIColor
10 NSStrokeWidthAttributeName; //描边宽度,value是NSNumber
11 NSShadowAttributeName; //阴影,value是NSShadow对象
12 NSTextEffectAttributeName; //文字效果,value是NSString
13 NSAttachmentAttributeName;//附属,value是NSTextAttachment 对象
14 NSLinkAttributeName;//链接,value是NSURL or NSString
15 NSBaselineOffsetAttributeName;//基础偏移量,value是NSNumber对象
16 NSUnderlineColorAttributeName;//下划线颜色,value是UIColor对象
17 NSStrikethroughColorAttributeName;//删除线颜色,value是UIColor
18 NSObliquenessAttributeName; //字体倾斜
19 NSExpansionAttributeName; //字体扁平化
20 NSVerticalGlyphFormAttributeName;//垂直或者水平,value是 NSNumber,0表示水平,1垂直
iOS NSAttributedStringKey
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。
推荐阅读更多精彩内容
- 使用cocopods时遇到以下错误: CocoaPods did not set the base configu...
- 有demo,If you have any questions, please contact us by ema...
- 最新版本12.1 (16B91) 在Finder状态下前往文件夹,快捷键:shift+command+G,填写路径...
- iOS12、iOS11、iOS10、iOS9常见适配 @(IOS各个版本适配) [TOC] 一、iOS12(Xco...
- 一、iOS12(Xcode10) 1.1、升级Xcode10后项目报错 不允许多个info.plist Xcode...