Commits all unsaved changes to the event store.
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+
If the commit operation succeeded,
YES even when there are no changes to commit.
This method allows you to save batched changes to the event store. For example, if you pass
NO as the
commit parameter to the
remove methods, the changes are not saved until this method is invoked. Likewise, if you pass
YES as the
commit parameter to the aforementioned methods, there is no need to call this method.