当前位置: 动力学知识库 > 问答 > 编程问答 >

uialertview - iOS: Custom permission alert view text

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: