_contentLabel 为uilabel
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:_contentLabel.text];
NSMutableParagraphStyle *paragraphString = [[NSMutableParagraphStyle alloc] init];
[paragraphString setLineSpacing:5]; //设置行间距
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphString range:NSMakeRange(0, _contentLabel.text.length)];
_contentLabel.attributedText = attributedString;
[_contentLabel sizeToFit];