NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle setLineSpacing:3];//调整行间距
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [note length])];
_goodsRemarkLabel.attributedText = attributedString;
[_goodsRemarkLabel sizeToFit];
转载于:https://www.cnblogs.com/zzzili/p/6685253.html