DCImagePickerController
is a drop-in replacement for UIImagePickerController
that supports selecting multiple items. It is styled after, and nearly identical to, the UIImagePickerController
found in iOS 7 and above. Because it depends on Photos.framework
, DCImagePickerController
requires iOS 8.
DCImagePickerController
works exactly like UIImagePickerController
, except without any camera functionality and with two new properties, minimumNumberOfItems
and maximumNumberOfItems
:
DCImagePickerController *imagePickerController = [[DCImagePickerController alloc] init];
imagePickerController.minimumNumberOfItems = 2;
imagePickerController.maximumNumberOfItems = 5;
imagePickerController.delegate = self;
imagePickerController.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:imagePickerController animated:YES completion:nil];
DCImagePickerController is available under the MIT license. See the LICENSE file for more info.