参考文章:http://blog.sina.com.cn/s/blog_836919db0102w3v9.html
//设置行间距为9
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle setLineSpacing:9];
CGSize needSize = [SFPublicMethod getTextSizeWithText:text size:CGSizeMake(kScreenViewWidth - 20, kScreenViewHeight) attributesDic:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:GET_FONT(13)}];
//根据文本计算高度
+(CGSize)getTextSizeWithText:(NSString *)text size:(CGSize)size attributesDic:(NSDictionary *)attributesDic
{
CGSize needSize = [text boundingRectWithSize:size
options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading
attributes:attributesDic context:nil].size;
return needSize;
}