PhotoActionSheetView.h
1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// 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