如何从UIImagePickerController中选择多个图像?
答案 0 :(得分:1)
我认为你不能通过API直接做到这一点。但是你可以简单地保持选择器打开并在回调中建立一个图像列表:
- (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];
}