HOWTO set the text of the AddressBookAccessRequest alertView?

前端 未结 1 843
慢半拍i
慢半拍i 2020-12-30 17:21

I know that in iOS 6 we should request the access to contacts first like below : \"App

相关标签:
1条回答
  • 2020-12-30 17:48

    You can use NSContactsUsageDescription key for this purpose.

    Add this key to your info.plist and add the Message you want to display as the value.

    NSContactsUsageDescription

    NSContactsUsageDescription (String - iOS) describes the reason that the app accesses the user’s contacts. When the system prompts the user to allow access, this string is displayed as part of the dialog box.

    This key is supported in iOS 6.0 and later.

    Please check InfoPlistKeyReference for more keys.

    0 讨论(0)
提交回复
热议问题