Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to re-request photo access in iOS5?

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!

like image 751
OpenThread Avatar asked Oct 25 '12 03:10

OpenThread


2 Answers

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.

like image 120
EarlyRiser Avatar answered Sep 18 '22 00:09

EarlyRiser


Under iOS 5, a user can't deny access to their photos. There is nothing to request or re-request. Same for the address book, calendar, and reminders. All of this only applies to iOS 6.

like image 43
rmaddy Avatar answered Sep 22 '22 00:09

rmaddy