博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS 富文本所有的NSAttributedStringKey
阅读量:4693 次
发布时间:2019-06-09

本文共 1128 字,大约阅读时间需要 3 分钟。

NSAttributedStringKey:

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是UIColor10 NSStrokeWidthAttributeName; //描边宽度,value是NSNumber11 NSShadowAttributeName; //阴影,value是NSShadow对象12 NSTextEffectAttributeName; //文字效果,value是NSString13 NSAttachmentAttributeName;//附属,value是NSTextAttachment 对象14 NSLinkAttributeName;//链接,value是NSURL or NSString15 NSBaselineOffsetAttributeName;//基础偏移量,value是NSNumber对象16 NSUnderlineColorAttributeName;//下划线颜色,value是UIColor对象17 NSStrikethroughColorAttributeName;//删除线颜色,value是UIColor18 NSObliquenessAttributeName; //字体倾斜19 NSExpansionAttributeName; //字体扁平化20 NSVerticalGlyphFormAttributeName;//垂直或者水平,value是 NSNumber,0表示水平,1垂直

 

转载于:https://www.cnblogs.com/fenglee594/p/8616230.html

你可能感兴趣的文章
Error和Exception
查看>>
Python和Singleton (单件)模式[转载]
查看>>
hibernate多对多单向(双向)关系映射
查看>>
二分查找题
查看>>
httpclient设置proxy与proxyselector
查看>>
IT常用单词
查看>>
拓扑排序
查看>>
NYOJ--32--SEARCH--组合数
查看>>
JMS
查看>>
gulpfile 压缩模板
查看>>
【34.14%】【BZOJ 3110】 [Zjoi2013]K大数查询
查看>>
【 henuacm2016级暑期训练-动态规划专题 A 】Cards
查看>>
第五篇:白话tornado源码之褪去模板的外衣
查看>>
设备常用框架framework
查看>>
bootstrap模态框和select2合用时input无法获取焦点(转)
查看>>
21世纪经济网APP
查看>>
解决NetworkOnMainThreadException
查看>>
1039 到底买不买
查看>>
农银电商项目学习笔记(一)
查看>>
MockObject
查看>>