CollectionImageCell.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CollectionImageCell.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2017/3/14.
  6. // Copyright © 2017年 ping. All rights reserved.
  7. //
  8. #import "CollectionImageCell.h"
  9. @class XG_AssetModel;
  10. @interface CollectionImageCell : UICollectionViewCell
  11. @property (nonatomic, strong) UIButton *btnDelete;
  12. @property (nonatomic, strong) UIImageView *ivImage;
  13. @property (nonatomic, strong) UILabel *labelTitleBottom;//label bottom default 4 character
  14. @property (nonatomic, assign) BOOL isShowTitleBottom;//whether show title bottom ,default false;
  15. @property (nonatomic, strong) NSString *imgName;
  16. @property (nonatomic, strong) void (^blockDelete)(CollectionImageCell *cell);
  17. //@property (nonatomic, strong) ModelImage *model;;
  18. #pragma mark 获取cell高度
  19. + (CGSize)fetchHeight;
  20. + (CGSize)fetchHeightWithTitle;//bottom show title
  21. #pragma mark 刷新cell
  22. - (CGSize)resetCellWithModel:(ModelImage *)model;
  23. - (void)resetCellWithCamera;
  24. - (void)resetWithModel:(XG_AssetModel *)model;
  25. @property (nonatomic, strong) XG_AssetModel *model;
  26. @property (nonatomic, strong) void (^blockModel)(UIImage *photo);
  27. @end
  28. @interface CollectionCustomeImageSizeCell : CollectionImageCell
  29. @end
  30. @interface CollectionCustomeImageReplyCell : CollectionImageCell
  31. @end