+ (float)freshLabelSpacingAndGetHeightWithTxt:(NSString *)txt
font:(UIFont *)font
spacing:(float)spacing
label:(UILabel *)label
{
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.lineSpacing = spacing;
NSDictionary *ats = @{
NSFontAttributeName :font,
NSParagraphStyleAttributeName : paragraphStyle,
};
NSMutableAttributedString *attributedString =[[NSMutableAttributedString alloc] initWithString:txt
attributes:ats];
label.attributedText = attributedString;
CGSize size = [txt boundingRectWithSize:CGSizeMake(label.frame.size.width, 2000) options:NSStringDrawingUsesLineFragmentOrigin attributes:ats context:nil].size;
return size.height;
}