Search code examples
ioscalendaruser-permissions

How do I add my text to the iOS calendar access permission alert?


The iOS Human Interface Guidelines state:

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

Where? There's no option for me to add my own message in EKEventStore's requestAccessToEntityType:completion: method. I want to add a completely new calendar to the user's calendar store, not modify an existing one, if that matters.

Am I looking in the right place?


Solution

  • You can add NSCalendarsUsageDescription key to your info.Plist and that should be enough

    Source : 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.