views:

131

answers:

1

Hi, everyone,

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

+2  A: 

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
@KennyTM, 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
@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
@KennyTM, thank you very much. It is what I want. :-)
Questions