Instance Method


Returns whether the receiver was able to commit any pending edits.


func commitEditing() -> Bool

Return Value

true if the changes were successfully applied to the model, false otherwise.


A commit is denied if the receiver fails to apply the changes to the model object, perhaps due to a validation error.

See Also

Managing Editing

func discardEditing()

Causes the receiver to discard any changes, restoring the previous values.

func commitEditingAndReturnError()

Attempt to commit pending edits, returning an error in the case of failure.