iPhone: How to detect if an EKEvent instance can be modified?

Posted by Tom van Zummeren on Stack Overflow See other posts from Stack Overflow or by Tom van Zummeren
Published on 2010-12-17T22:01:08Z Indexed on 2010/12/25 12:54 UTC
Read the original article Hit count: 548

While working with the EventKit on iPhone I noticed that some events can exist which cannot be modified. Examples I encountered so far are birthdays and events synced with CalDAV. When you view the event's details in the standard built-in calendar app on iPhone the "Edit" button in the top-right corner is not visible in these cases, where it would be visible when viewing "normal" events.

I've searched everywhere, read all documentation there is but I simply can't find anything that tells me how to detect this behavior! I can only detect it afterwards:

  1. edit an event's title
  2. save it to the event store
  3. check the event's title, if it has not changed it is not editable!

I am looking for a way that I can detect the non-editable behavior of an event beforehand. I know this is possible because I've seen other calendar apps implement this correctly.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c