iPhone模拟器上的日历 [英] Calendar on iPhone simulator

查看:66
本文介绍了iPhone模拟器上的日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iPhone模拟器上访问日历?

How can I access the calendar on the iPhone simulator?

我正在使用Titanium制作应用程序,并且创建了一个活动.它应该已经工作了,现在我要测试它是否正确保存在日历中.

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?

谢谢

Tekkkles

推荐答案

Lion的更新:要访问用户库文件夹,请

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.

但是,正如我在该线程中发现的 一样,您可以找到模拟器使用的SQLLite3数据库,然后使用Mac从那里的日历中获取数据.如果您不熟悉SQLLite3数据库,建议您使用 SQLite数据库浏览器来查看文件

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.

编辑:似乎Calendar.sqlitedb文件的位置取决于您使用的模拟器的版本.

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

打开模拟器后,转到菜单并单击硬件",然后将鼠标悬停在版本"上.您应该在所使用的设备版本旁边看到一个复选标记(对我来说是4.0.2).现在转到/Users/<username>/Library/Application Support/iPhone Simulator/<that version number>/Library/Calendar/,您应该可以找到Calendar.sqlitedb文件.

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.

这篇关于iPhone模拟器上的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆