let paragraphStyle = NSMutableParagraphStyle()
paragraphStyle.lineSpacing = 5//此处为设置行间距为5
paragraphStyle.lineBreakMode = .byCharWrapping
let attributes = [
NSAttributedStringKey.font:UIFont.systemFont(ofSize: 13),
NSAttributedStringKey.foregroundColor:UIColor().colorWithHexString(color: "666666"),
NSAttributedStringKey.paragraphStyle: paragraphStyle
]
网友评论