mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-04-14 00:03:04 +08:00
22 lines
857 B
Objective-C
22 lines
857 B
Objective-C
|
|
#import <UIKit/UIKit.h>
|
|
#import <Photos/Photos.h>
|
|
#import "PreviewViewController.h"
|
|
@protocol DmcPickerDelegate<NSObject>
|
|
-(void) resultPicker:(NSMutableArray*) selectArray;
|
|
@end
|
|
|
|
@interface DmcPickerViewController : UIViewController <UICollectionViewDataSource,UICollectionViewDelegate,DmcPreviewDelegate>{
|
|
NSMutableArray *_cellArray; //collectionView数据
|
|
PHFetchResult * fetchResult;
|
|
NSMutableArray *selectArray;
|
|
}
|
|
@property (nonatomic, strong) UICollectionView *collectionView;
|
|
@property (nonatomic,weak)id<DmcPickerDelegate> _delegate;
|
|
/// Default is 9 / 默认最大可选9张图片
|
|
@property (nonatomic, assign) NSInteger maxSelectCount;
|
|
//'selectMode':101,//101=PICKER_IMAGE_VIDEO , 100=PICKER_IMAGE , 102=PICKER_VIDEO
|
|
@property (nonatomic, assign) NSInteger selectMode;
|
|
@property (nonatomic, assign) NSInteger maxSelectSize;
|
|
@end
|