// 在自适应高度的时候,需要先计算出内容的高度然后再设置cell的高度。lable使用sizetofit就可以了。
+(CGFloat)getCellHeightWithItem:(FXCreativeGiveupReasonInfo *)item
{
// if (item.rowH) {//如有rowH就直接返回,避免重新计算
// return item.rowH;
// }
NSMutableParagraphStyle *paragraphStyle1 = [[NSMutableParagraphStyle alloc] init];
[paragraphStyle1 setLineSpacing:6];// 行间距
// 计算cell的行高的关键变高控件的高度
CGRect sizeH = [item.abReason boundingRectWithSize:CGSizeMake(ScreenWidth, 0) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14],NSParagraphStyleAttributeName:paragraphStyle1} context:nil];
return sizeH.size.height;
}