NSAttributedStringKey
生活随笔
收集整理的這篇文章主要介紹了
NSAttributedStringKey
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
NSFontAttributeName; //字體,value是UIFont對象 NSParagraphStyleAttributeName;//繪圖的風格(居中,換行模式,間距等諸多風格),value是NSParagraphStyle對象 NSForegroundColorAttributeName;// 文字顏色,value是UIFont對象 NSBackgroundColorAttributeName;// 背景色,value是UIFont NSLigatureAttributeName; // 字符連體,value是NSNumber NSKernAttributeName; // 字符間隔 NSStrikethroughStyleAttributeName;//刪除線,value是NSNumber NSUnderlineStyleAttributeName;//下劃線,value是NSNumber NSStrokeColorAttributeName; //描繪邊顏色,value是UIColor NSStrokeWidthAttributeName; //描邊寬度,value是NSNumber NSShadowAttributeName; //陰影,value是NSShadow對象 NSTextEffectAttributeName; //文字效果,value是NSString NSAttachmentAttributeName;//附屬,value是NSTextAttachment 對象 NSLinkAttributeName;//鏈接,value是NSURL or NSString NSBaselineOffsetAttributeName;//基礎偏移量,value是NSNumber對象 NSUnderlineColorAttributeName;//下劃線顏色,value是UIColor對象 NSStrikethroughColorAttributeName;//刪除線顏色,value是UIColor NSObliquenessAttributeName; //字體傾斜 NSExpansionAttributeName; //字體扁平化 NSVerticalGlyphFormAttributeName;//垂直或者水平,value是 NSNumber,0表示水平,1垂直
轉載于:https://www.cnblogs.com/fuunnyy/p/8795867.html
總結
以上是生活随笔為你收集整理的NSAttributedStringKey的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS11最新隐私信息访问列表
- 下一篇: python中的基本数据结构