Uploading Multiple Image using UIImagePickerContro

2019-08-11 14:31发布

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条回答
Juvenile、少年°
2楼-- · 2019-08-11 15:31

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.

查看更多
登录 后发表回答