Uploading Multiple Image using UIImagePickerController in IPhone Application

萝らか妹 提交于 2020-01-05 10:35:25

问题


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


回答1:


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

I suggest you to use ELCImagePickerController.

You may choose your option here.



来源:https://stackoverflow.com/questions/23516147/uploading-multiple-image-using-uiimagepickercontroller-in-iphone-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!