在iPhone应用程序中使用UIImagePickerController上传多个图像

时间:2014-05-07 11:08:12

标签: ios uiimagepickercontroller

我正在使用iOS应用程序,我想使用UIImagepickercontroller选择多个图像,然后将其上传到DropBox。 我在一些地方发现,通过使用UIImagepickercontroller,我们一次只能选择单个图像。我使用下面的代码在UIPopovercontroller的帮助下使用UIImagepickercontroller选择多个图像:

 UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
        imagePicker.delegate = self;
        imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    imagePicker.mediaTypes = [NSArray arrayWithObject:(NSString*) kUTTypeImage];
       // [self presentViewController: imagePicker animated:YES completion:NULL];

     popoverController = [[UIPopoverController alloc] initWithContentViewController:imagePicker];
        [popoverController presentPopoverFromRect:CGRectMake(0.0, 0.0, 400.0, 300.0)inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

但是当我运行这个应用程序时,我只得到一个弹出窗口,只选择单个图像。 有什么方法可以选择多个图像吗? 请帮帮我。 提前致谢

1 个答案:

答案 0 :(得分:2)

有太多的第三方课程使我们能够从资产库中挑选多个图像,并列出所有图像here

我建议您使用ELCImagePickerController

您可以选择here选项。