开发者

Calendar on iPhone simulator

开发者 https://www.devze.com 2023-03-19 19:20 出处:网络
How can I access the calendar on the i开发者_开发百科Phone simulator? I\'m using Titanium to make an app, and I\'ve created an event. It should have worked, and now I want to test if it is saved corr

How can I access the calendar on the i开发者_开发百科Phone simulator?

I'm using Titanium to make an app, and I've created an event. It should have worked, and now I want to test if it is saved correctly in the calendar.

Can anyone tell me how I can open it?

Thanks

Tjekkles


Update for Lion: To get to the User Library folder, follow these instructions.

There doesn't seem to be any way to access the calendar from the simulator, unfortunately.

However, as I found in this thread, you can find the SQLLite3 database that the simulator uses and get the data from the calendar there using your mac. If you aren't familiar with SQLLite3 databases, I'd recommend using SQLite database browser to look at the file.

EDIT: It seems that the location of the Calendar.sqlitedb file depends on the version of the simulator you are using.

When your simulator is open, go to the menu and click Hardware and then mouse over Version. You should see a check mark next to the device version you are using (for me, it was 4.0.2). Now go to /Users/<username>/Library/Application Support/iPhone Simulator/<that version number>/Library/Calendar/, and you should be able to find the Calendar.sqlitedb file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号