DCTZPhotoPreviewCell.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // TZPhotoPreviewCell.h
  3. // TZImagePickerController
  4. //
  5. // Created by 谭真 on 15/12/24.
  6. // Copyright © 2015年 谭真. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class DCTZAssetModel;
  10. @interface DCTZAssetPreviewCell : UICollectionViewCell
  11. @property (nonatomic, strong) DCTZAssetModel *model;
  12. @property (nonatomic, copy) void (^singleTapGestureBlock)(void);
  13. - (void)configSubviews;
  14. - (void)photoPreviewCollectionViewDidScroll;
  15. @end
  16. @class DCTZAssetModel,DCTZProgressView,DCTZPhotoPreviewView;
  17. @interface DCTZPhotoPreviewCell : DCTZAssetPreviewCell
  18. @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
  19. @property (nonatomic, strong) DCTZPhotoPreviewView *previewView;
  20. @property (nonatomic, assign) BOOL allowCrop;
  21. @property (nonatomic, assign) CGRect cropRect;
  22. - (void)recoverSubviews;
  23. @end
  24. @interface DCTZPhotoPreviewView : UIView
  25. @property (nonatomic, strong) UIImageView *imageView;
  26. @property (nonatomic, strong) UIScrollView *scrollView;
  27. @property (nonatomic, strong) UIView *imageContainerView;
  28. @property (nonatomic, strong) DCTZProgressView *progressView;
  29. @property (nonatomic, assign) BOOL allowCrop;
  30. @property (nonatomic, assign) CGRect cropRect;
  31. @property (nonatomic, strong) DCTZAssetModel *model;
  32. @property (nonatomic, strong) id asset;
  33. @property (nonatomic, copy) void (^singleTapGestureBlock)(void);
  34. @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
  35. @property (nonatomic, assign) int32_t imageRequestID;
  36. - (void)recoverSubviews;
  37. @end
  38. @class AVPlayer, AVPlayerLayer;
  39. @interface DCTZVideoPreviewCell : DCTZAssetPreviewCell
  40. @property (strong, nonatomic) AVPlayer *player;
  41. @property (strong, nonatomic) AVPlayerLayer *playerLayer;
  42. @property (strong, nonatomic) UIButton *playButton;
  43. @property (strong, nonatomic) UIImage *cover;
  44. - (void)pausePlayerAndShowNaviBar;
  45. @end
  46. @interface DCTZGifPreviewCell : DCTZAssetPreviewCell
  47. @property (strong, nonatomic) DCTZPhotoPreviewView *previewView;
  48. @end