abortEditing()
Terminates the current editing operation and discards any edited text.
Declaration
func abortEditing() -> BoolReturn 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(_:).