TZPhotoPreviewController.h 1.2 KB

12345678910111213141516171819202122232425
  1. //
  2. // TZPhotoPreviewController.h
  3. // TZImagePickerController
  4. //
  5. // Created by 谭真 on 15/12/24.
  6. // Copyright © 2015年 谭真. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface TZPhotoPreviewController : UIViewController
  10. @property (nonatomic, strong) NSMutableArray *models; ///< All photo models / 所有图片模型数组
  11. @property (nonatomic, strong) NSMutableArray *photos; ///< All photos / 所有图片数组
  12. @property (nonatomic, assign) NSInteger currentIndex; ///< Index of the photo user click / 用户点击的图片的索引
  13. @property (nonatomic, assign) BOOL isSelectOriginalPhoto; ///< If YES,return original photo / 是否返回原图
  14. @property (nonatomic, assign) BOOL isCropImage;
  15. /// Return the new selected photos / 返回最新的选中图片数组
  16. @property (nonatomic, copy) void (^backButtonClickBlock)(BOOL isSelectOriginalPhoto);
  17. @property (nonatomic, copy) void (^doneButtonClickBlock)(BOOL isSelectOriginalPhoto);
  18. @property (nonatomic, copy) void (^doneButtonClickBlockCropMode)(UIImage *cropedImage,id asset);
  19. @property (nonatomic, copy) void (^doneButtonClickBlockWithPreviewType)(NSArray<UIImage *> *photos,NSArray *assets,BOOL isSelectOriginalPhoto);
  20. @end