使用注意事项:
1、根据图片个数,及最大数限制换行和高度计算;
// 计算实际视图高度
+ (CGFloat)getImageAddMoreViewRealHeight:(NSInteger)count maxCount:(NSInteger)countMax
{
CGFloat height = originY + originY;
// 非最后一个时,添加一个添加图片的按钮
NSInteger countButton = (count < countMax ? 1 : 0);
NSInteger countReal = count + countButton;
NSInteger row = countReal / imageRowCount;
row += ((countReal % imageRowCount == 0) ? 0 : 1);
height += (row * sizeImage + (row - 1) * originY);
return height;
}