TZAssetCell.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. TZAssetCellTypePhoto = 0,
  12. TZAssetCellTypeLivePhoto,
  13. TZAssetCellTypePhotoGif,
  14. TZAssetCellTypeVideo,
  15. TZAssetCellTypeAudio,
  16. } TZAssetCellType;
  17. @class TZAssetModel;
  18. @interface TZAssetCell : UICollectionViewCell
  19. @property (weak, nonatomic) UIButton *selectPhotoButton;
  20. @property (nonatomic, strong) TZAssetModel *model;
  21. @property (nonatomic, copy) void (^didSelectPhotoBlock)(BOOL);
  22. @property (nonatomic, assign) TZAssetCellType type;
  23. @property (nonatomic, assign) BOOL allowPickingGif;
  24. @property (nonatomic, copy) NSString *representedAssetIdentifier;
  25. @property (nonatomic, assign) PHImageRequestID imageRequestID;
  26. @property (nonatomic, copy) NSString *photoSelImageName;
  27. @property (nonatomic, copy) NSString *photoDefImageName;
  28. @property (nonatomic, assign) BOOL showSelectBtn;
  29. @end
  30. @class TZAlbumModel;
  31. @interface TZAlbumCell : UITableViewCell
  32. @property (nonatomic, strong) TZAlbumModel *model;
  33. @property (weak, nonatomic) UIButton *selectedCountButton;
  34. @end
  35. @interface TZAssetCameraCell : UICollectionViewCell
  36. @property (nonatomic, strong) UIImageView *imageView;
  37. @end