123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // SHAddImgView.h
- // SHAddImageView
- //
- // Created by HaoSun on 2018/2/3.
- // Copyright © 2018年 YHKIT. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #import "SHConfigModel.h"
- #import "SHAddImgModel.h"
- @protocol SHAddImgViewDelegate <NSObject>
- @optional
- /**
- 更新高度
- @param updateHeight 更新的高度数值
- */
- - (void)addimageViewUpdateHeight:(CGFloat)updateHeight ;
- /**
- 在外部点击某个图片进入浏览模式
- @param itemSource 图片数组
- @param index 点击图片的下标
- */
- - (void)didSelectItemSource:(NSArray <UIImage *>*)itemSource index:(NSInteger)index ;
- /**
- 点击 + 号按钮点击事件
- @param imageSource 现在存在的图片数组
- */
- - (void)addImgIBActionImageSource:(NSArray <UIImage *>*)imageSource ;
- @end
- @interface SHAddImgView : UIView
- - (instancetype)initWithMaxColumn:(NSInteger)maxColumn;
- @property (nonatomic, strong) SHConfigModel *configModel;
- @property (nonatomic, weak) id <SHAddImgViewDelegate> delegate;
- /**
- 当iSDefualti为YES的时候,给予草稿的图片数组
- */
- @property (nonatomic, strong) NSArray <UIImage *> *defualtImages;
- @end
|