Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix iOS10 crashing when image picker is called #796

Merged
merged 1 commit into from
Sep 11, 2016
Merged

Fix iOS10 crashing when image picker is called #796

merged 1 commit into from
Sep 11, 2016

Conversation

afestein
Copy link

@afestein afestein commented Sep 9, 2016

When presenting a UIImagePickerController the app would crash because
visibleViewController was nil when being called by the navigation
controller.

The actual changes to iOS10 implementation of visibleViewController
remains a mystery, but this adds a sensible fallback in the case that
it's set to nil.

Fixes #795.

When presenting a `UIImagePickerController` the app would crash because
`visibleViewController` was `nil` when being called by the navigation
controller.

The actual changes to iOS10 implementation of `visibleViewController`
remains a mystery, but this adds a sensible fallback in the case that
it's set to nil.

Fixes #795.
@edenvicary
Copy link

Ah the if statement 😢

@edenvicary
Copy link

👍

@jamonholmgren jamonholmgren merged commit 6aed897 into jamonholmgren:master Sep 11, 2016
@jamonholmgren
Copy link
Owner

Thank you! Use from master for now, and @andrewhavens will release a new patch version at some point.

@afestein afestein deleted the navigation-controller-orientation branch September 11, 2016 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants