UITextFieldDelegate_Extensions UITextFieldDelegate_Extensions Class


Extension methods to the IUITextFieldDelegate interface to support all the methods from the UITextFieldDelegate protocol.

public static class UITextFieldDelegate_Extensions
type UITextFieldDelegate_Extensions = class


The extension methods for IUITextFieldDelegate allow developers to treat instances of the interface as having all the optional methods of the original UITextFieldDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.


EditingEnded(IUITextFieldDelegate, UITextField) EditingEnded(IUITextFieldDelegate, UITextField)

Indicates that editing has ended in the specified text field.

EditingEnded(IUITextFieldDelegate, UITextField, UITextFieldDidEndEditingReason) EditingEnded(IUITextFieldDelegate, UITextField, UITextFieldDidEndEditingReason)

Indicates that editing has ended in the specified text field for the specified reason.

EditingStarted(IUITextFieldDelegate, UITextField) EditingStarted(IUITextFieldDelegate, UITextField)

Indicates that editing has begun on the specified text field.

ShouldBeginEditing(IUITextFieldDelegate, UITextField) ShouldBeginEditing(IUITextFieldDelegate, UITextField)

Whether editing should begin in the specified text field.

ShouldChangeCharacters(IUITextFieldDelegate, UITextField, NSRange, String) ShouldChangeCharacters(IUITextFieldDelegate, UITextField, NSRange, String)

Whether the specified text should be changed.

ShouldClear(IUITextFieldDelegate, UITextField) ShouldClear(IUITextFieldDelegate, UITextField)

Whether the specified text field's current contents should be removed.

ShouldEndEditing(IUITextFieldDelegate, UITextField) ShouldEndEditing(IUITextFieldDelegate, UITextField)

Whether editing should stop in the specified text field.

ShouldReturn(IUITextFieldDelegate, UITextField) ShouldReturn(IUITextFieldDelegate, UITextField)

Whether the text field should process the pressing of the return button.

Applies to