12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // TZPhotoPreviewCell.h
- // TZImagePickerController
- //
- // Created by 谭真 on 15/12/24.
- // Copyright © 2015年 谭真. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class DCTZAssetModel;
- @interface DCTZAssetPreviewCell : UICollectionViewCell
- @property (nonatomic, strong) DCTZAssetModel *model;
- @property (nonatomic, copy) void (^singleTapGestureBlock)(void);
- - (void)configSubviews;
- - (void)photoPreviewCollectionViewDidScroll;
- @end
- @class DCTZAssetModel,DCTZProgressView,DCTZPhotoPreviewView;
- @interface DCTZPhotoPreviewCell : DCTZAssetPreviewCell
- @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
- @property (nonatomic, strong) DCTZPhotoPreviewView *previewView;
- @property (nonatomic, assign) BOOL allowCrop;
- @property (nonatomic, assign) CGRect cropRect;
- - (void)recoverSubviews;
- @end
- @interface DCTZPhotoPreviewView : UIView
- @property (nonatomic, strong) UIImageView *imageView;
- @property (nonatomic, strong) UIScrollView *scrollView;
- @property (nonatomic, strong) UIView *imageContainerView;
- @property (nonatomic, strong) DCTZProgressView *progressView;
- @property (nonatomic, assign) BOOL allowCrop;
- @property (nonatomic, assign) CGRect cropRect;
- @property (nonatomic, strong) DCTZAssetModel *model;
- @property (nonatomic, strong) id asset;
- @property (nonatomic, copy) void (^singleTapGestureBlock)(void);
- @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
- @property (nonatomic, assign) int32_t imageRequestID;
- - (void)recoverSubviews;
- @end
- @class AVPlayer, AVPlayerLayer;
- @interface DCTZVideoPreviewCell : DCTZAssetPreviewCell
- @property (strong, nonatomic) AVPlayer *player;
- @property (strong, nonatomic) AVPlayerLayer *playerLayer;
- @property (strong, nonatomic) UIButton *playButton;
- @property (strong, nonatomic) UIImage *cover;
- - (void)pausePlayerAndShowNaviBar;
- @end
- @interface DCTZGifPreviewCell : DCTZAssetPreviewCell
- @property (strong, nonatomic) DCTZPhotoPreviewView *previewView;
- @end
|