4

does iPhone simulator calendar store "availability" correctly for an event?

I've got a test app that populates the iPhone simulator calendar with events, but I'm noting that the availability property seems to be always FREE when reading it back using EKEventKit.

Anyone know if there a known problem here?

Also I note when running the SimpleEKDemo apple sample application, that when it brings up the EKEventKitUI screen to view/edit an event, that I don't see the "availability" field. Not sure why. On the actual physical iPhone it appears fine.

4

3 回答 3

1

看看我的回答here。所有模拟器日历信息都存储在模拟器文件中的 sqlite 数据库中。

编辑:我查看了数据库的结构,发现了可用性值: SQLite 数据库截图.

看起来模拟器保存了这些信息。尝试在您的应用程序中添加一个事件并浏览数据库以查看是否设置了可用性值。如果做不到这一点,你最好的选择是尝试一个真实的设备。

于 2011-10-11T05:37:09.463 回答
0

不幸的是,似乎没有任何方法可以从模拟器访问日历。

于 2011-10-11T05:23:36.133 回答
0

iPhone 模拟器不包含日历,这可以解释为什么它不存储任何与其相关的数据。

如果您阅读了这篇文章,您会发现测试像您这样的应用程序的唯一方法是在实际的 iPhone 设备上。

于 2011-10-10T09:23:02.847 回答