Instance Method

textViewDidBeginEditing(_:)

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

Declaration

optional func textViewDidBeginEditing(_ textView: UITextView)

Parameters

textView

The text view in which editing began.

Discussion

Implementation of this method is optional. A text view sends this message to its delegate immediately after the user initiates editing in a text view and before any changes are actually made. You can use this method to set up any editing-related data structures and generally prepare your delegate to receive future editing messages.

See Also

Responding to Editing Notifications

func textViewShouldBeginEditing(UITextView) -> Bool

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

func textViewShouldEndEditing(UITextView) -> Bool

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

func textViewDidEndEditing(UITextView)

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