简体   繁体   中英

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!

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM