ios - 如何将我的文本添加到 iOS 日历访问权限警报?

标签 ios calendar user-permissions

iOS Human Interface Guidelines状态:

You can provide text that appears in the alert, below a system-provided title such as ““App Name” Would Like to Access Your Contacts”



在哪里?我无法在 EKEventStore 中添加我自己的消息的requestAccessToEntityType:completion:方法。如果这很重要,我想将一个全新的日历添加到用户的日历存储中,而不是修改现有的。

我找对地方了吗?

最佳答案

您可以添加NSCalendarsUsageDescription您的info.Plist 的 key 这应该足够了
来源:Information Property List Key Reference

NSCalendarsUsageDescription (String - iOS) describes the reason that the app accesses the user’s calendars. 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.

关于ios - 如何将我的文本添加到 iOS 日历访问权限警报?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26139894/

相关文章:

iOS 企业应用程序 - 如何确保我的应用程序在后台运行?

ios - WhatsApp如何验证手机号码(直接读取短信验证码)- iPhone

ios - 我应该使用多个目标还是单独的 Xcode 项目?

ios - 比 days/7 更准确地计算自纪元以来的周数

Android 日历 "dtStart"返回未知值

java - date.getHours() 到 calendar.hour

android - 如何使用 MediaRecorder 在 Android 上捕获视频?

For 循环中的 IOS 动画。调整了每个延迟但仍然有问题

oop - 设计用户访问/权限类

mysql - 无法在 Google Cloud 中的 MySql 表上创建触发器