iOS:自定义权限警报视图文本 [英] iOS: Custom permission alert view text

查看:393
本文介绍了iOS:自定义权限警报视图文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无论如何自定义权限提醒视图如:联系人,相册,推送通知......在访问之前,他们会弹出如下警告视图:

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?

更新:

查看上面的更新图片,翻译成英文:

See the update image above, translate into english:


为了寻找您的家人和朋友,Path需要将您的
联系人转移到我们的服务器

"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.

推荐答案

在iOS 6及更高版本中,可以设置这些以显示特定消息。通过添加一些新条目来编辑Info.plist。密钥都以隐私 - 开头(原始密钥是 NSxxxUsageDescription 其中 xxx 是联系人,位置,提醒, PhotoLibrary或Calendards)。该值是您希望向用户显示的文本。

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.

这篇关于iOS:自定义权限警报视图文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆