iOS Guides | Samples

UIKit.UITextFieldDelegate Class

A class that receives notifications from a UITextField.

See Also: UITextFieldDelegate


[Foundation.Register("UITextFieldDelegate", false)]
public class UITextFieldDelegate : NSObject, IDisposable, IUITextFieldDelegate


A strongly typed implementation of a class that can be used to respond to events raised by the UITextField.

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UITextFieldDelegate are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

Indicates that editing has ended in the specified text field.
EditingEnded(UITextField, UITextFieldDidEndEditingReason)
Indicates that editing has ended in the specified text field for the specified reason.
Indicates that editing has begun on the specified text field.
ShouldBeginEditing(UITextField) : Boolean
Whether editing should begin in the specified text field.
ShouldChangeCharacters(UITextField, NSRange, String) : Boolean
Whether the specified text should be changed.
ShouldClear(UITextField) : Boolean
Whether the specified text field's current contents should be removed.
ShouldEndEditing(UITextField) : Boolean
Whether editing should stop in the specified text field.
ShouldReturn(UITextField) : Boolean
Whether the text field should process the pressing of the return button.