sureshkumar
sureshkumar

Reputation: 51

How to select Multiple Images from Photo Library?

- (void)pickImage {

  UIImagePickerController *picker = [[UIImagePickerController alloc] init];
  picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
  picker.delegate = self;
  [self presentViewController:picker animated:YES completion:nil];
}

- (void)imagePickerController:(UIImagePickerController *)picker
    didFinishPickingMediaWithInfo:(NSDictionary *)info {

  _image = (UIImage *)[info objectForKey:UIImagePickerControllerOriginalImage];
  [_imageView setImage:_image];
  [self.view addSubview:_imageView];
  [self dismissViewControllerAnimated:YES completion:^{}];
}

Upvotes: 0

Views: 2851

Answers (1)

Majid Bashir
Majid Bashir

Reputation: 568

You can't select multiple photos or videos simultaneously
You have to use custom ImagePicker. And I think ELCImagePickerController is the best option in my opinion.

There is also some other library that can be used..
ELCImagePickerController
WSAssetPickerController
QBImagePickerController
ZCImagePickerController
CTAssetsPickerController
AGImagePickerController


Upvotes: 1

Related Questions