Contents

textViewDidBeginEditing(_:)

Tells the delegate when editing of the specified text view begins.

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