1
當queryForEventsListWithCalendarId它返回所有事件但重複任務返回recurrence = nil和recurringEventId = id如何獲得重複規則以瞭解此事件是每日,每週還是每月重複Google Calendar API在swift return recurrence = nil時返回recurringEventId
func fetchEvents(){
let query = GTLQueryCalendar.queryForEventsListWithCalendarId("primary")
query.maxResults = 30
query.timeMin = NSDate()
query.singleEvents = true
query.orderBy = kGTLCalendarOrderByStartTime
service.executeQuery(
query,
delegate: self,
didFinishSelector: "displayResultWithTicket:finishedWithObject:error:"
)
}
你能提供的代碼? –
我給這個問題添加了代碼 –