在 iPhone 应用程序中使用 UIImagePickerController 上传多个图像 [英] Uploading Multiple Image using UIImagePickerController in IPhone Application

查看:32
本文介绍了在 iPhone 应用程序中使用 UIImagePickerController 上传多个图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

i am working with an iOS application in which i want to select multiple images using UIImagepickercontroller and then upload it on DropBox. i found in some places that by using UIImagepickercontroller we only select single image at once a time . i am using the below code for selecting multiple images using UIImagepickercontroller with the help of UIPopovercontroller :

 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];

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

but when i run this application i only get a popup window and just select single image. Is there any way by which i can select multiple images? Please help me out. Thanks in advance

推荐答案

有很多第三方类可以让我们从资源库中挑选多个图像,并且都列出了 此处.

There are so many third party classes which enables us to pick multiple images from asset library and all are listed here.

我建议您使用 ELCImagePickerController.

您可以在此处选择您的选项.

You may choose your option here.

这篇关于在 iPhone 应用程序中使用 UIImagePickerController 上传多个图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆