In my app I am trying to select the only image and PDF file from the gallery or file manager.
But when I am getting all the images and files which is stored in the file manager and gallery.
Here is my code:
if ([[actionSheet buttonTitleAtIndex:buttonIndex] isEqualToString:@"Gallery"]) {
UIImagePickerController *pickerView = [[UIImagePickerController alloc] init];
pickerView.allowsEditing = YES; pickerView.delegate = self;
[pickerView setSourceType:UIImagePickerControllerSourceTypeSavedPhotosAlbum];
[self presentViewController:pickerView animated:YES completion:nil];
}