Instance Method

textViewDidEndEditing(_:)

Tells the delegate that editing of the specified text view has ended.

Declaration

optional func textViewDidEndEditing(_ textView: UITextView)

Parameters

textView

The text view in which editing ended.

Discussion

Implementation of this method is optional. A text view sends this message to its delegate after it closes out any pending edits and resigns its first responder status. You can use this method to tear down any data structures or change any state information that you set when editing began.

See Also

Responding to Editing Notifications

func textViewShouldBeginEditing(UITextView) -> Bool

Asks the delegate if editing should begin in the specified text view.

func textViewDidBeginEditing(UITextView)

Tells the delegate that editing of the specified text view has begun.

func textViewShouldEndEditing(UITextView) -> Bool

Asks the delegate if editing should stop in the specified text view.