1
我想问一个关于iPhone应用程序的问题。 iPhone中存储的日历信息在哪里?它是通过使用EKEvent吗?iPhone在哪里存储日历信息?
我想问一个关于iPhone应用程序的问题。 iPhone中存储的日历信息在哪里?它是通过使用EKEvent吗?iPhone在哪里存储日历信息?
日历存储在/var/mobile/Calendar/Calendar.sqlitedb
的SQLite3数据库中。在模拟器上,它在/Users/<username>/Library/Application Support/iPhone Simulator/User/Library/Calendar/Calendar.sqlitedb
。
您不应该直接访问此数据库。
是的,EventKit只是使用这个数据库。
感谢您的回复。我想问一下,我可以使用Event Kit API将新事件添加到iPhone日历吗?或者我应该使用其他方法来访问和修改数据库的内容?谢谢。 – Questions 2010-08-10 07:02:58
@Mark:查看问题[*编程添加自定义事件在iPhone日历*](http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar) – kennytm 2010-08-10 07:22:21
谢谢你非常。这是我想要的。 :-) – Questions 2010-08-10 07:39:08