mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-05-03 00:00:04 +08:00
support ios
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Photos/Photos.h>
|
||||
@protocol DmcPickerDelegate<NSObject>
|
||||
-(void) resultPicker:(NSMutableArray*) selectArray;
|
||||
@end
|
||||
|
||||
@interface DmcPickerViewController : UIViewController <UICollectionViewDataSource,UICollectionViewDelegate>{
|
||||
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;
|
||||
@end
|
||||
Reference in New Issue
Block a user