Home:ALL Converter>EKEventStore permission prompt

EKEventStore permission prompt

Ask Time:2012-09-27T14:34:59         Author:Sani

Json Formatter

According to the calendar and events programming guide from Apple:

On iOS 6 and later, we must request access to use the user’s Calendar database with the requestAccessToEntityType:completion: method after the event store is initialized.

It is also stated that the user is only prompted the first time the app requests access to an entity type; any subsequent instantiations of EKEventStore uses existing permissions. Your app is not blocked while the user decides to grant or deny permission.

My question here is: is there a way for us to prompt the user again to request access to an entity type?

It seems bad that I have to put a UIAlertView to ask the user to go to Settings and give the proper permissions.

Author:Sani,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/12615455/ekeventstore-permission-prompt
yy