I’m relatively new to XCode and I don’t understand how to allow the user to pick multiple images from the UIImagePickerControler. This is my current code that allows the user to pick one image:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
[self presentModalViewController:imagePicker animated:YES];
[imagePicker release];
Then, to process the image selected, I use:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[self dismissModalViewControllerAnimated:YES];
UIImage *image = [info valueForKey:UIImagePickerControllerOriginalImage];
//do stuff with image
}
How do I modify both parts of the code to allow the user to pick more than one image. Thanks in advance.
Guvvy
The UIImagePickerController does not have an API for multiple image picking afaik – but this might give you a start:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/55351-uiimagepickercontroller-multi-select-photos.html