Google 日历重复事件 (iPhone)
我正在构建一个简单的 iPhone 日历应用程序,&我确实只需要简单的功能 - 添加事件、更新事件、删除事件,唯一的复杂性是事件需要选择是重复发生还是单个发生。我已经管理了添加&删除事件位很容易,但我发现不可能执行其他位,即 -
添加重复的事件(即,直到某个日期,每 x 天等)
编辑现有事件,使其重复发生或停止重复发生
- 编辑重复事件的特定重复/或所有重复
我认为我可以管理其他东西,但是GData文档似乎几乎不存在(如果有人能给我指出一些关于GData东西的有意义的objective-c文档,我会是一个非常快乐的兔子 - 在当我逐渐搜索它的所有代码以尝试并弄清楚如何使用它的那一刻)
以上的任何代码示例将非常感激!
非常感谢。
I'm in the middle of building a simple iPhone calendar app, & I really do need only simple functionality - add event, update event, delete event, with the only complexity being the events need to have the option of being recurring or single. I have managed the add & delete event bit easily enough, but I'm finding it impossible to do the other bits, namely -
add an event with recurrences (ie, up to a certain date, every x days, etc)
edit an existing event, so that it recurrs or stops recurring
- edit a specific recurrence of a recurring event / or all recurrences
I think I can manage the other stuff, but the GData documentation seems almost non-existent (if anyone can point me to some meaningful objective-c docs for the GData stuff, I'd be a really happy bunny - at the moment I'm gradually trawling through all its code to try & figure out how to use it)
Any code samples for the above would be very much appreciated!
Many thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加重复事件:
重复事件以iCalendar 格式表示。幸运的是,您必须只知道字段 DTSTART、DTEND、EXDATE、RDATE、RRULE >。另请注意,警报放置在 xml 事件条目的根目录中。 (您不能同时使用时间和重复标记)。 Google 日历网络应用程序不会标记 RDATE、EXDATE,但可以理解它们,并且其他应用程序可以标记它们。
编辑重复事件:
如果您能够发布正常的重复事件,那么更新它应该没有问题。我测试了谷歌的更新从正常到重复再返回,没有任何问题。
编辑重复事件的特定重复
重复发生的例外情况表示为新事件(已确认或取消),这些事件具有(在标记中)originalEvent 链接到重复事件。请注意,修改重复事件中的字段会自动更改事件例外中的字段(例如标题)。如果您在更新到谷歌时删除originalEvent,谷歌会默默地忽略它。
add event with recurrences:
Recurrences are expressed in iCalendar format. You have to fortunately know only fields DTSTART, DTEND, EXDATE, RDATE, RRULE. Also notice, that alarms are placed in the root of xml event entry. (You cannot use when and recurrence tag together). Google calendar web app does not mark RDATE, EXDATE, but understands them and other applications can mark them.
edit recurring event:
If you are able to post normal and recurring event it should be no problem to update it. I tested update to google from normal to recurring and back without no problem.
edit a specific recurrence of a recurring event
Exceptions from recurrence are expressed as new events (confirmed or canceled) which have link (in tag) originalEvent to the recurring event. Be aware that modification of a field in a recurring event can automatically change the field in the events exceptions (e.g. title). If you remove the originalEvent while updating to google, google silently ignores it.