PhotoActionSheetView.h 1.07 KB
//
//  PhotoActionSheetView.h
//  IM_ios_client
//
//  Created by 赵世强 on 16/5/31.
//  Copyright © 2016年 xiniu. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface PhotoActionSheetView : UIView

@property (nonatomic, weak) UIViewController *sender;

@property (weak, nonatomic) UIButton *btnCamera;
@property (strong, nonatomic) UIView *baseView;
@property (strong, nonatomic) UICollectionView *collectionView;

/** 最大选择数 default is 10 */
@property (nonatomic, assign) NSInteger maxSelectCount;

/** 预览图最大显示数 default is 20 */
@property (nonatomic, assign) NSInteger maxPreviewCount;

- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;

/**
 * @brief 显示多选照片视图
 * @param sender
 *              调用该空间的试图控制器
 * @param animate
 *              是否显示动画效果
 * @param completion
 *              完成回调
 */
- (void)showWithSender:(UIViewController *)sender animate:(BOOL)animate completion:(void (^)(NSArray<UIImage *> *selectPhotos))completion;

NS_ASSUME_NONNULL_END

@end