DKPhotoPickerBrowserPhoto.h 733 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // PickerPhoto.h
  3. // ZLAssetsPickerDemo
  4. //
  5. //
  6. #import <UIKit/UIKit.h>
  7. #import <AssetsLibrary/AssetsLibrary.h>
  8. #import "DKPhotoAssets.h"
  9. @interface DKPhotoPickerBrowserPhoto : NSObject
  10. /**
  11. * 自动适配是不是以下几种数据
  12. */
  13. @property (nonatomic , strong) id photoObj;
  14. /**
  15. * 保存相册模型
  16. */
  17. @property (nonatomic , strong) DKPhotoAssets *asset;
  18. /**
  19. * URL地址
  20. */
  21. @property (nonatomic , strong) NSURL *photoURL;
  22. /**
  23. * 原图
  24. */
  25. @property (nonatomic , strong) UIImage *photoImage;
  26. /**
  27. * 缩略图
  28. */
  29. @property (nonatomic , strong) UIImage *thumbImage;
  30. /**
  31. * 传入一个图片对象,可以是URL/UIImage/NSString,返回一个实例
  32. */
  33. + (instancetype)photoAnyImageObjWith:(id)imageObj;
  34. @end