Asks the delegate if editing should begin in the specified text view.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The text view for which editing is about to begin.
true if an editing session should be initiated; otherwise,
false to disallow editing.
When the user performs an action that would normally initiate an editing session, the text view calls this method first to see if editing should actually proceed. In most circumstances, you would simply return
true from this method to allow editing to proceed.
Implementation of this method by the delegate is optional. If it is not present, editing proceeds as if this method had returned