How to re-request photo access in iOS5?

OpenThread picture OpenThread · Oct 25, 2012 · Viewed 7.2k times · Source

If user denied app's photo access, I know that it can be checked by [ALAssetsLibrary authorizationStatus] in iOS6, and reopen it in Settings->Privacy.

But how to check and reopen it in iOS5?

And is it possible re-request photo access?

Special thanks!

Answer

EarlyRiser picture EarlyRiser · Oct 25, 2012

I guess you are talking about the request the user sees for allowing the application to use their location. I'm sorry to say that there's not much you can do apart from detecting that they have denied the request and informing them what they are missing out on and giving instructions on how to go into Settings and change the setting manually.

You can test if the user has denied the location request using:

[CLLocationManager authorizationStatus] == kCLAuthorizationStatusDenied

there are other cases to check for as well... Best to read the documentation.