Lable行间距

let paragrap=NSMutableParagraphStyle()

paragrap.lineSpacing = 10

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

cell.labelMsg.attributedText=attributedstring

你可能感兴趣的:(Lable行间距)