【问题标题】:iphone google reminder problemiphone谷歌提醒问题
【发布时间】:2010-11-08 02:51:58
【问题描述】:

我正在使用 gdata api 将 iphone 应用程序与谷歌日历整合在一起。 完成事件添加、删除、获取、更新

但提醒未添加到日历活动中

我的代码是:

NSDate *anHourFromNow = [NSDate dateWithTimeIntervalSinceNow:60*60];

GDataDateTime *startDateTime = [GDataDateTime dateTimeWithDate:[NSDate 日期] timeZone:[NSTimeZone systemTimeZone]];

GDataDateTime *endDateTime = [GDataDateTime dateTimeWithDate:anHourFromNow timeZone:[NSTimeZone systemTimeZone]];

GDataReminder *reminder = [GDataReminder 提醒];

[提醒setMinutes:@"10"];

GDataWhen *when = [GDataWhen whenWithStartTime:startDateTime endTime:endDateTime];

[当添加提醒:提醒时];

[事件添加时间:何时];

如果(事件)

{ // 发布事件。

NSURL *altLinkURL = [[日历备用链接] URL];

[服务 fetchEntryByInsertingEntry:事件 forFeedURL:altLinkURL 代表:无 didFinishSelector:nil]; }

使用此代码事件已添加到日历中,但当我在 Google 日历中手动查看此事件时未出现提醒

【问题讨论】:

    标签: iphone gdata-api gcal


    【解决方案1】:

    提醒应该有一个显式的 setMethod: call;讨论是here

    【讨论】:

      猜你喜欢
      • 2012-05-30
      • 2021-11-06
      • 2021-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多