JSImagePickerController
JSImagePickerController copied to clipboard
Problem if called from a navigation controller that is embedded in a navigation controller.
I'm using iPhone 6S with iOS 9.1.
To replicate:
- Open Demo project,
- Select main storyboard
- Select controller,
- Embed in navigation controller.
- Embed in Tabbar controller.
- Run app Only the "recent images" from the horizontal scroll work, take photo and select from library don't work,
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