NSString *string = @"疯狂妓女方法哦分局哦付款方式将加快发你分开了女方难受飞机从南方女长裤女分局丰收年";
label.text = string;
CGSize size = CGSizeMake(labelW, CGFLOAT_MAX);
NSDictionary *attributes = @{NSFontAttributeName :[UIFont systemFontOfSize:13]};
CGRect rect = [string boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:attributes context:nil];
CGFloat labelH = rect.size.height;
label.frame = CGRectMake(labelX, labelY, labelW, labelH);
//Label动态折行
//0 代表行数不确定,设置numberOfLines为0
//设置font字体,与动态计算时参考的字体大小以及样式要统一
label.numberOfLines = 0;
label.font = [UIFont systemFontOfSize:13];