TextViewDelegateProtocol can be found in Protocols when adding a text view to your screen. TextViewDelegateProtocol includes only optional functions.

  • textView:shouldChangeTextInRangeLocation:andRangeLength:replacementString: Returns whether the specified text should be replaced in the text view.
  • textViewDidBeginEditing: It is invoked when editing of the specified text view has begun.
  • textViewDidEndEditing: It is invoked when editing of the specified text view has ended.
  • textViewShouldBeginEditing: Returns if editing should begin in the specified text view.
  • textViewShouldEndEditing: Returns if editing should stop in the specified text view.
Did this answer your question?