RITLPhotosPreviewController.h 664 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // YPPhotoPreviewController.h
  3. // YPPhotoDemo
  4. //
  5. // Created by YueWen on 16/8/5.
  6. // Copyright © 2017年 YueWen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class PHAsset;
  11. /// @brief 响应3D Touch出现的控制器
  12. @interface RITLPhotosPreviewController : UIViewController
  13. /// 资源大小
  14. @property (nonatomic, readonly, assign) CGSize assetSize;
  15. /// 当前显示的Image
  16. @property (nonatomic, readonly, strong) PHAsset * showAsset;
  17. /// 便利初始化方法
  18. -(instancetype)initWithShowAsset:(PHAsset *)showAsset;
  19. /// 便利构造器
  20. +(instancetype)previewWithShowAsset:(PHAsset *)showAsset;
  21. @end
  22. NS_ASSUME_NONNULL_END