Lable行间距

2017-07-12  本文已影响0人  贝勒黑福晋

let paragrap=NSMutableParagraphStyle()

paragrap.lineSpacing = 10

let attributedstring=NSAttributedString(string: (homeworkInfo?.content)!, attributes: [NSParagraphStyleAttributeName:paragrap])

cell.labelMsg.attributedText=attributedstring

上一篇 下一篇

猜你喜欢

热点阅读