悟空记账

SHAddImgView.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // SHAddImgView.h
  3. // SHAddImageView
  4. //
  5. // Created by HaoSun on 2018/2/3.
  6. // Copyright © 2018年 YHKIT. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "SHConfigModel.h"
  10. #import "SHAddImgModel.h"
  11. @protocol SHAddImgViewDelegate <NSObject>
  12. @optional
  13. /**
  14. 更新高度
  15. @param updateHeight 更新的高度数值
  16. */
  17. - (void)addimageViewUpdateHeight:(CGFloat)updateHeight ;
  18. /**
  19. 在外部点击某个图片进入浏览模式
  20. @param itemSource 图片数组
  21. @param index 点击图片的下标
  22. */
  23. - (void)didSelectItemSource:(NSArray <UIImage *>*)itemSource index:(NSInteger)index ;
  24. /**
  25. 点击 + 号按钮点击事件
  26. @param imageSource 现在存在的图片数组
  27. */
  28. - (void)addImgIBActionImageSource:(NSArray <UIImage *>*)imageSource ;
  29. @end
  30. @interface SHAddImgView : UIView
  31. - (instancetype)initWithMaxColumn:(NSInteger)maxColumn;
  32. @property (nonatomic, strong) SHConfigModel *configModel;
  33. @property (nonatomic, weak) id <SHAddImgViewDelegate> delegate;
  34. /**
  35. 当iSDefualti为YES的时候,给予草稿的图片数组
  36. */
  37. @property (nonatomic, strong) NSArray <UIImage *> *defualtImages;
  38. @end