Instance Method

saveCalendar:commit:error:

Saves a calendar to the event store by either committing or batching the changes.

Declaration

- (BOOL)saveCalendar:(EKCalendar *)calendar commit:(BOOL)commit error:(NSError * _Nullable *)error;

Parameters

calendar

The calendar to be saved.

commit

YES to save the calendar immediately; otherwise, the change is batched until the commit: method is invoked.

error

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

Return Value

YES if successful; otherwise, NO.

Discussion

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

See Also