ImagePickerCollectionCell.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. //
  2. // ImagePickerCollectionCell.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2017/4/6.
  6. // Copyright © 2017年 ping. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //photo asset
  10. #import <AssetsLibrary/AssetsLibrary.h>
  11. //photo
  12. #import <Photos/Photos.h>
  13. #import "ImageControl.h"
  14. @interface ImagePickerCollectionCell : UICollectionViewCell
  15. @property (strong, nonatomic) UIImageView *iconImg;
  16. @property (strong, nonatomic) ImageControl *rightButton;
  17. @property (nonatomic, strong) void(^blockClick)(ImagePickerCollectionCell *);//单选使用
  18. @property (nonatomic, strong) PHImageRequestOptions *opt;//image fetch opt
  19. @property (nonatomic, strong) PHImageManager *imageManager;//image fetch manager
  20. #pragma mark 刷新cell
  21. - (void)resetCellWithImage:(PHAsset *)image isSelected:(BOOL)iseSelected;
  22. @end
  23. @interface ImagePickerBottomView : UIView
  24. //属性
  25. @property (strong, nonatomic) UIButton *btnComplete;
  26. @property (strong, nonatomic) UIButton *btnSelectAlbum;
  27. @property (strong, nonatomic) UIImageView *iconArrow;
  28. #pragma mark 创建
  29. + (instancetype)initWithModel:(id)model;
  30. #pragma mark 刷新view
  31. - (void)resetViewWithModel:(id)model;
  32. @end
  33. @interface ImagePikcerListBGVIew : UIControl//属性
  34. @property (strong, nonatomic) UIView *listView;
  35. @property (strong, nonatomic) UIControl *viewBG;
  36. @property (strong, nonatomic) NSArray *aryDatas;
  37. @property BOOL isAnimate;
  38. @property (nonatomic, strong) void (^blockSelect)(PHAssetCollection *);
  39. #pragma mark 刷新view
  40. - (void)resetViewWithAry:(NSArray *)arydatas height:(CGFloat)height;
  41. #pragma mark 动画显示
  42. - (void)hideAnimation;
  43. - (void)showAnimation;
  44. @end