-----获取文本的宽高
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.lineSpacing=4;//行间距设置
NSDictionary *dict = @{NSFontAttributeName:[UIFont systemFontOfSize:13],NSParagraphStyleAttributeName:paragraphStyle};
CGSize IntroduceSize = [_HealthModel.text boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width-102, MAXFLOAT) options: NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:dict context:nil].size;
----设置UILabel的行间距
NSString *testStr=@"hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh";
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:testStr];
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle setLineSpacing:5];//调整行间距
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, testStr.length)];
self.contentLabel.text = testStr;
self.contentLabel.attributedText = attributedString;