RITLPhotosHorBrowseDataSource.h 647 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RITLPhotosHorBrowseDataSource.h
  3. // RITLPhotoDemo
  4. //
  5. // Created by YueWen on 2018/5/10.
  6. // Copyright © 2018年 YueWen. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. #import <Photos/Photos.h>
  11. NS_ASSUME_NONNULL_BEGIN
  12. @protocol RITLPhotosHorBrowseDataSource <UICollectionViewDataSource>
  13. /// 请求图片的对象
  14. @property (nonatomic, strong, readonly) PHCachingImageManager* imageManager;
  15. /// 当前位置的资源对象
  16. - (PHAsset *)assetAtIndexPath:(NSIndexPath *)indexPath;
  17. @optional
  18. /// 默认的第一次进入显示的item
  19. - (NSIndexPath *)defaultItemIndexPath;
  20. @end
  21. NS_ASSUME_NONNULL_END