Instance Method

removeReminder:commit:error:

Removes a reminder from the event store by either committing or batching the changes.

Declaration

- (BOOL)removeReminder:(EKReminder *)reminder commit:(BOOL)commit error:(NSError * _Nullable *)error;

Parameters

reminder

The reminder to be removed.

commit

A Boolean value indicating whether to remove the reminder immediately or to batch the removals; passing NO will not commit the removal from the event store until the commit: method is invoked.

error

The error that occurred, if any; otherwise, nil.

Return Value

If successful, YES; otherwise, NO.

Discussion

This method raises an exception if reminder belongs to another event store.

See Also