DCTZAssetCell.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // TZAssetCell.h
  3. // TZImagePickerController
  4. //
  5. // Created by 谭真 on 15/12/24.
  6. // Copyright © 2015年 谭真. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <Photos/Photos.h>
  10. typedef enum : NSUInteger {
  11. DCTZAssetCellTypePhoto = 0,
  12. DCTZAssetCellTypeLivePhoto,
  13. DCTZAssetCellTypePhotoGif,
  14. DCTZAssetCellTypeVideo,
  15. DCTZAssetCellTypeAudio,
  16. } DCTZAssetCellType;
  17. @class DCTZAssetModel;
  18. @interface DCTZAssetCell : UICollectionViewCell
  19. @property (weak, nonatomic) UIButton *selectPhotoButton;
  20. @property (weak, nonatomic) UIButton *cannotSelectLayerButton;
  21. @property (nonatomic, strong) DCTZAssetModel *model;
  22. @property (assign, nonatomic) NSInteger index;
  23. @property (nonatomic, copy) void (^didSelectPhotoBlock)(BOOL);
  24. @property (nonatomic, assign) DCTZAssetCellType type;
  25. @property (nonatomic, assign) BOOL allowPickingGif;
  26. @property (nonatomic, assign) BOOL allowPickingMultipleVideo;
  27. @property (nonatomic, copy) NSString *representedAssetIdentifier;
  28. @property (nonatomic, assign) int32_t imageRequestID;
  29. @property (nonatomic, strong) UIImage *photoSelImage;
  30. @property (nonatomic, strong) UIImage *photoDefImage;
  31. @property (nonatomic, assign) BOOL showSelectBtn;
  32. @property (assign, nonatomic) BOOL allowPreview;
  33. @property (assign, nonatomic) BOOL useCachedImage;
  34. @property (nonatomic, copy) void (^assetCellDidSetModelBlock)(DCTZAssetCell *cell, UIImageView *imageView, UIImageView *selectImageView, UILabel *indexLabel, UIView *bottomView, UILabel *timeLength, UIImageView *videoImgView);
  35. @property (nonatomic, copy) void (^assetCellDidLayoutSubviewsBlock)(DCTZAssetCell *cell, UIImageView *imageView, UIImageView *selectImageView, UILabel *indexLabel, UIView *bottomView, UILabel *timeLength, UIImageView *videoImgView);
  36. @end
  37. @class DCTZAlbumModel;
  38. @interface DCTZAlbumCell : UITableViewCell
  39. @property (nonatomic, strong) DCTZAlbumModel *model;
  40. @property (weak, nonatomic) UIButton *selectedCountButton;
  41. @property (nonatomic, copy) void (^albumCellDidSetModelBlock)(DCTZAlbumCell *cell, UIImageView *posterImageView, UILabel *titleLabel);
  42. @property (nonatomic, copy) void (^albumCellDidLayoutSubviewsBlock)(DCTZAlbumCell *cell, UIImageView *posterImageView, UILabel *titleLabel);
  43. @end
  44. @interface DCTZAssetCameraCell : UICollectionViewCell
  45. @property (nonatomic, strong) UIImageView *imageView;
  46. @end