TZPhotoPreviewCell.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 TZAssetModel,TZProgressView,TZPhotoPreviewView;
  10. @interface TZPhotoPreviewCell : UICollectionViewCell
  11. @property (nonatomic, strong) TZAssetModel *model;
  12. @property (nonatomic, copy) void (^singleTapGestureBlock)();
  13. @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
  14. @property (nonatomic, strong) TZPhotoPreviewView *previewView;
  15. @property (nonatomic, assign) BOOL allowCrop;
  16. @property (nonatomic, assign) CGRect cropRect;
  17. - (void)recoverSubviews;
  18. @end
  19. @interface TZPhotoPreviewView : UIView
  20. @property (nonatomic, strong) UIImageView *imageView;
  21. @property (nonatomic, strong) UIScrollView *scrollView;
  22. @property (nonatomic, strong) UIView *imageContainerView;
  23. @property (nonatomic, strong) TZProgressView *progressView;
  24. @property (nonatomic, assign) BOOL allowCrop;
  25. @property (nonatomic, assign) CGRect cropRect;
  26. @property (nonatomic, strong) TZAssetModel *model;
  27. @property (nonatomic, strong) id asset;
  28. @property (nonatomic, copy) void (^singleTapGestureBlock)();
  29. @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
  30. - (void)recoverSubviews;
  31. @end