Collection_Image.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Collection_Image.h
  3. // 乐销
  4. //
  5. // Created by 隋林栋 on 2017/1/9.
  6. // Copyright © 2017年 ping. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. //上传图片
  10. #import "UIView+SelectImageView.h"
  11. #import "XG_AssetPickerController.h"
  12. @interface Collection_Image : UIView<XG_AssetPickerControllerDelegate,UICollectionViewDelegate,UICollectionViewDataSource>
  13. #pragma mark property datas
  14. @property (nonatomic, strong) NSMutableArray *aryDatas;
  15. @property (nonatomic, strong) UICollectionView *collectionView;
  16. @property (nonatomic, strong) void(^blockUpComplete)(NSMutableArray *);
  17. @property (nonatomic, strong) NSMutableArray<XG_AssetModel *> *assets;
  18. @property (nonatomic, strong) void(^blockDelComplete)(NSMutableArray *);
  19. @property (nonatomic, strong) NSMutableArray *aryPhoto;
  20. //@property (nonatomic, assign) ENUM_UPIMAGE_TYPE upImageType;
  21. #pragma mark property can change the view
  22. /**
  23. if is edit the first is camera,default true
  24. */
  25. @property (nonatomic, assign) BOOL isEditing;
  26. /**
  27. show title bottom of collection cell,default false
  28. */
  29. @property (nonatomic, assign) BOOL isShowTitleBottom;
  30. /**
  31. the collection slide orientation,default is horizon
  32. */
  33. @property (nonatomic, assign) UICollectionViewScrollDirection scrollDirection;
  34. /**
  35. default CollectionImageCell, if change cell will exchange
  36. */
  37. @property (nonatomic, strong) NSString *collectionCellName;
  38. @property (nonatomic, strong) NSString *imgName;
  39. #pragma mark init
  40. - (instancetype)initWithConfig:(BOOL)config;
  41. #pragma mari init
  42. - (void)configView;
  43. #pragma mark 刷新cell
  44. - (void)resetWithAry:(NSMutableArray *)aryDatas;
  45. #pragma mark 显示选中的图片
  46. - (void)showSelectImage;
  47. -(void)resetView;
  48. @end