Instance Method

cancelEditing()

Ends the editing session and discards any changes that were made to the event.

Declaration

func cancelEditing()

Discussion

This method is the programmatic equivalent of the user tapping Cancel. The delegate won't receive the eventEditViewController(_:didCompleteWith:) message, so you must dismiss the controller after calling this method.