ekeventstore

iOS EventKit - Event is not being deleted from calendar

点点圈 提交于 2019-12-01 08:22:46
问题 I'm deleting event using the following code [store requestAccessToEntityType:EKEntityTypeEvent completion: ^(BOOL granted, NSError *error) { if (granted) { EKEvent *event = [store eventWithIdentifier:eventIdentifier]; NSError *eventDeleteError = nil; if (event) { [store removeEvent:event span:EKSpanThisEvent error:&eventDeleteError]; } if (eventDeleteError) { NSLog(@"Event Deletion Error: %@", eventDeleteError); } }]; I got no error in eventDeleteError but following message appear in the

How to detect which EKevent was changed

依然范特西╮ 提交于 2019-11-30 23:56:02
I got the problem. I need to know when Events in my EventStore are changed, so for this case I use EKEventStoreChangedNotification but this notification return to me incomprehensible dictionary in userInfo It's look like this: EKEventStoreChangedObjectIDsUserInfoKey = ("x-apple-eventkit:///Event/p429" ); I don't know how I can use this data to taking access for changed object. Please help me This will detect changed events and log the event titles over a date range. Although, I ended up not doing this because in practice I don't know the date range. I need to compare with all the events I'm

iOS EKEvent Store recreating iCloud calendars in a loop, won't save local.

佐手、 提交于 2019-11-30 07:37:48
问题 I'm having a strange issue EKEventStore, iCloud and local calendars. If iCloud is enabled the Calendar is created and events are saved into the calendar as you would expect. if iCloud is turned off and you try to save an event nothing happens, however the device continues to create iCloud calendars in a loop every 3-5 seconds until iCloud is turned back on and then all of those calendars flood into iCloud as duplicates. I'm using nearly the exact code that has been referenced here on SO many

EKCADErrorDomain using calendarWithIdentifier

谁说我不能喝 提交于 2019-11-30 06:53:30
In my iOS app i used to access calendar with the following method: EKCalendar* cal = [eventStore calendarWithIdentifier:[calendarIDs objectAtIndex:i]]; permissions are asked to the user via: eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted,NSError* error){} now this works fine on iOS 7, but on iOS 8 i keep getting the following error every time the method calendarWithIdentfier is called: Error getting shared calendar invitations for entity types 3 from daemon: Error Domain=EKCADErrorDomain Code=1013 "The operation couldn’t be completed. (EKCADErrorDomain error

iOS EKEvent Store recreating iCloud calendars in a loop, won't save local.

谁说我不能喝 提交于 2019-11-29 07:42:54
I'm having a strange issue EKEventStore, iCloud and local calendars. If iCloud is enabled the Calendar is created and events are saved into the calendar as you would expect. if iCloud is turned off and you try to save an event nothing happens, however the device continues to create iCloud calendars in a loop every 3-5 seconds until iCloud is turned back on and then all of those calendars flood into iCloud as duplicates. I'm using nearly the exact code that has been referenced here on SO many times as well as in Apples Docs. I'm completely stumped as to why it's not working and there seems to

EKCADErrorDomain using calendarWithIdentifier

北城以北 提交于 2019-11-29 07:28:35
问题 In my iOS app i used to access calendar with the following method: EKCalendar* cal = [eventStore calendarWithIdentifier:[calendarIDs objectAtIndex:i]]; permissions are asked to the user via: eventStore requestAccessToEntityType:EKEntityTypeEvent completion:^(BOOL granted,NSError* error){} now this works fine on iOS 7, but on iOS 8 i keep getting the following error every time the method calendarWithIdentfier is called: Error getting shared calendar invitations for entity types 3 from daemon:

How to accept/decline EKEvent invitation?

好久不见. 提交于 2019-11-29 07:08:20
I would like to allow my users to accept/decline a meeting invitation within my app. I think what I need is to update somehow the EKParticipantStatus but it looks like it isn't possible to update. Apple Docs: Event Kit cannot add participants to an event nor change participant information In this stackOverflow question someone suggested to bring the native EventKitUI, which I've tried like this: class CalendarViewController: UIViewController, EKEventViewDelegate { // ..... let eventController = EKEventViewController() guard let eventWithIdentifier = MeetingsFetcher.eventStoreClass.event

How to add an event in the device calendar using swift

守給你的承諾、 提交于 2019-11-28 16:40:28
I would be interested in knowing how to add a calendar event in the device, but using swift. I know there are some examples made in Objective-C, but at the moment nothing in swift. Many thanks. Swift 3.0 version let eventStore : EKEventStore = EKEventStore() // 'EKEntityTypeReminder' or 'EKEntityTypeEvent' eventStore.requestAccess(to: .event) { (granted, error) in if (granted) && (error == nil) { print("granted \(granted)") print("error \(error)") let event:EKEvent = EKEvent(eventStore: eventStore) event.title = "Test Title" event.startDate = Date() event.endDate = Date() event.notes = "This

How to accept/decline EKEvent invitation?

妖精的绣舞 提交于 2019-11-28 00:31:20
问题 I would like to allow my users to accept/decline a meeting invitation within my app. I think what I need is to update somehow the EKParticipantStatus but it looks like it isn't possible to update. Apple Docs: Event Kit cannot add participants to an event nor change participant information In this stackOverflow question someone suggested to bring the native EventKitUI, which I've tried like this: class CalendarViewController: UIViewController, EKEventViewDelegate { // ..... let eventController