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

PHCachingImageManager and photo library being denied #7

Open
fernandomorgan opened this issue Jan 4, 2017 · 0 comments
Open

PHCachingImageManager and photo library being denied #7

fernandomorgan opened this issue Jan 4, 2017 · 0 comments

Comments

@fernandomorgan
Copy link

So, it's safer to set imageManager below as an optional,
fileprivate let imageManager = PHCachingImageManager()

and only assign it after we check for Photo library access status. I have seen some crashes (might be in iOS9 only) when that isn't done, and the user hasn't determined the status yet; imageManager is initialized correctly, but if the user denies access, it might cause a crash.

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

No branches or pull requests

1 participant