support ios

This commit is contained in:
dmcBig
2018-04-20 16:56:23 +08:00
committed by GitHub
parent 444598adc7
commit 4239dc3ca6
12 changed files with 658 additions and 23 deletions
@@ -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