Delete the recursive alarms swift || Calender delete the reminders || EKEVENT delete the recurrence rule

Solution:

In objective c you can do the following code to remove the recurrence rule of the reminders in the calender event.

    [store removeEvent:eventToRemove span:EKSpanThisEvent commit:YES error:&err]; 
SWIFT:

objective If you tried the following it will not works

  try self.eventStore.remove(calendarEvent_toDelete, span: .thisEvent)
The above is for removing the single reminder

Try the below code it will works for recurrence rule.

    try self.store.remove(calendarEvent_toDelete, span: .thisEvent, commit: true)

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

Invalid bundle error while upload the app to the app Store