123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // TZPhotoPreviewCell.h
- // TZImagePickerController
- //
- // Created by 谭真 on 15/12/24.
- // Copyright © 2015年 谭真. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class TZAssetModel;
- @interface TZAssetPreviewCell : UICollectionViewCell
- @property (nonatomic, strong) TZAssetModel *model;
- @property (nonatomic, copy) void (^singleTapGestureBlock)(void);
- - (void)configSubviews;
- - (void)photoPreviewCollectionViewDidScroll;
- @end
- @class TZAssetModel,TZProgressView,TZPhotoPreviewView;
- @interface TZPhotoPreviewCell : TZAssetPreviewCell
- @property (nonatomic, copy) void (^imageProgressUpdateBlock)(double progress);
- @property (nonatomic, strong) TZPhotoPreviewView *previewView;
- @property (nonatomic, assign) BOOL allowCrop;
- @property (nonatomic, assign) CGRect cropRect;
- @property (nonatomic, assign) BOOL scaleAspectFillCrop;
- - (void)recoverSubviews;
- @end
- @interface TZPhotoPreviewView : UIView
- @property (nonatomic, strong) UIImageView *imageView;
- @property (nonatomic, strong) UIScrollView *scrollView;
- @property (nonatomic, strong) UIView *imageContainerView;
- @property (nonatomic, strong) TZProgressView *progressView;
- @property (nonatomic, assign) BOOL allowCrop;
- @property (nonatomic, assign) CGRect cropRect;
- @property (nonatomic, assign) BOOL scaleAspectFillCrop;
- @property (nonatomic, strong) TZAssetModel *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 TZVideoPreviewCell : TZAssetPreviewCell
- @property (strong, nonatomic) AVPlayer *player;
- @property (strong, nonatomic) AVPlayerLayer *playerLayer;
- @property (strong, nonatomic) UIButton *playButton;
- @property (strong, nonatomic) UIImage *cover;
- @property (nonatomic, strong) NSURL *videoURL;
- - (void)pausePlayerAndShowNaviBar;
- @end
- @interface TZGifPreviewCell : TZAssetPreviewCell
- @property (strong, nonatomic) TZPhotoPreviewView *previewView;
- @end
|