1

I want to ask a question about the iPhone application. Where does the calendar information stored in the iPhone? Is it by using EKEvent?

Questions
  • 20,055
  • 29
  • 72
  • 101

1 Answers1

3

The calendar is stored in a SQLite3 database at /var/mobile/Calendar/Calendar.sqlitedb. On the simulator, it is at /Users/<username>/Library/Application Support/iPhone Simulator/User/Library/Calendar/Calendar.sqlitedb.

You shouldn't access this database directly.

And yes, EventKit is just using this database.

kennytm
  • 510,854
  • 105
  • 1,084
  • 1,005
  • thank you for your reply. And I would like to ask that can I use the Event Kit API to add the new event to iPhone calendar? or I should use another method to access and modify the content of the database? Thank you. – Questions Aug 10 '10 at 07:02
  • @Mark: See the question [ *Programmatically add custom event in the iPhone Calendar* ](http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar) – kennytm Aug 10 '10 at 07:22