TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2015 |
Maintained by Alicia Ly.
It supports photo multiple selection
iOS 6 or later (Using AssetsLibrary)
1.Show the picker
LSPhotoPickerViewController *pickerVC = [[LSPhotoPickerViewController alloc] init];
//pickerVC.minimumNumberOfSelection = 3; // default is 1
//pickerVC.maximumNumberOfSelection = 9; // default is 9
pickerVC.delegate = self;
[self.navigationController pushViewController:pickerVC animated:YES];
2.Getting the selected assets with Delegate
Set ViewController's delegate in step 1, and it should be conform to <LSPhotoPickerDelegate>
, then
- (void)didSelectPhotos:(NSArray *)assetArray {
for (ALAsset *asset in assetArray) {
NSLog(@"%@", asset);
}
}