Mike
Mike

Reputation:

UIImagePickerController Picking More than one Image

How can i Pick more than One Image from the UIImagePickerController?

Upvotes: 0

Views: 232

Answers (1)

zoul
zoul

Reputation: 104145

I don’t think you can do that directly, through the API. But you can simply keep the picker open and build up a list of images in the callback:

- (void) imagePickerController: (UIImagePickerController*) picker
    didFinishPickingMediaWithInfo: (NSDictionary*) info
{
    [images addObject:[info objectForKey:UIImagePickerControllerOriginalImage]];
    // There has to be some exit condition,
    // otherwise the user would pick forever.
    if ([images count] == 3)
        [self dismissModalViewControllerAnimated:YES];
}

Upvotes: 1

Related Questions