Instance Property


The receiver’s delegate.


weak var delegate: UITextFieldDelegate? { get set }


A text field delegate responds to editing-related messages from the text field. You can use the delegate to respond to the text entered by the user and to some special commands, such as when Return is tapped.

See Also

Validating and Handling Edits

protocol UITextFieldDelegate

A set of optional methods that you use to manage the editing and validation of text in a text field object.