问题描述:

Anyway to custom permission alert view like: Contacts, Photo Album, Push Notifications... before they get access, they will pop up an alert view like this:

How to custom Contacts, photo album, push notifications alert view text?

UPdate:

See the update image above, translate into english:

"To seek for your family and friends, Path needs to transfer your

contacts to our server"

And click OK to get contacts access without any other access permission alert view pops up.

网友答案:

Under iOS 6 and above, these can be setup to show specific messages. Edit your Info.plist by adding a few new entries. The keys all begin with "Privacy - " (the raw keys are NSxxxUsageDescription where xxx is Contacts, Locations, Reminders, PhotoLibrary, or Calendards). The value is the text you wish to display to the user.

相关阅读:
Top