jacobsieradzki / JSImagePickerController

An photo/image picker controller that resembles the style of the image picker in iOS 8's messages app.
MIT License
224 stars 47 forks source link

Problem if called from a navigation controller that is embedded in a navigation controller. #13

Open igorcarrasco opened 8 years ago

igorcarrasco commented 8 years ago

I'm using iPhone 6S with iOS 9.1.

To replicate:

edwinbosire commented 7 years ago

I changed how the UIImagePickerController was presented.

- (void)selectFromLibraryWasPressed
{
    UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.delegate = self;
    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    picker.mediaTypes = [[NSArray alloc] initWithObjects:(NSString *)kUTTypeImage, nil];

    [self presentViewController:picker animated:YES completion:nil];
}

Subtle change here is to present the picker on self, and not on self.navigationcontroller