Contents

abortEditing()

Terminates the current editing operation and discards any edited text.

Declaration

func abortEditing() -> Bool

Return Value

true if there was a field editor associated with the control; otherwise, false.

Discussion

If there was a field editor, this method removes the field editor’s delegate.

Because the control discards any edits, it doesn’t call controlTextDidEndEditing(_:).

See Also

Managing the Field Editor