Instance Method

removeEvent:span:error:

Removes an event from the event store.

Declaration

- (BOOL)removeEvent:(EKEvent *)event span:(EKSpan)span error:(NSError * _Nullable *)error;

Parameters

event

The event to be removed.

span

The span to use. Indicates whether to remove future instances of the event in the case of a recurring event.

error

The error if one occurred; otherwise, nil.

Return Value

If the event has successfully removed, YES; otherwise, NO. Also returns NO if event cannot be removed because it is not in the event store.

Discussion

This method raises an exception if it is passed an event from another event store.

See Also