Asks the delegate if the text field’s current contents should be removed.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The text field containing the text.
true if the text field’s contents should be cleared; otherwise,
The text field calls this method in response to the user pressing the built-in clear button. (This button is not shown by default but can be enabled by changing the value in the
clear property of the text field.) This method is also called when editing begins and the
clears property of the text field is set to
If you do not implement this method, the text field clears the text as if the method had returned