編輯

共用方式為


UITextFieldDelegate_Extensions Class

Definition

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

public static class UITextFieldDelegate_Extensions
type UITextFieldDelegate_Extensions = class
Inheritance
UITextFieldDelegate_Extensions

Remarks

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.

Methods

EditingEnded(IUITextFieldDelegate, UITextField, UITextFieldDidEndEditingReason)

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

EditingEnded(IUITextFieldDelegate, UITextField)

Indicates that editing has ended in the specified text field.

EditingStarted(IUITextFieldDelegate, UITextField)

Indicates that editing has begun on the specified text field.

ShouldBeginEditing(IUITextFieldDelegate, UITextField)

Whether editing should begin in the specified text field.

ShouldChangeCharacters(IUITextFieldDelegate, UITextField, NSRange, String)

Whether the specified text should be changed.

ShouldClear(IUITextFieldDelegate, UITextField)

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

ShouldEndEditing(IUITextFieldDelegate, UITextField)

Whether editing should stop in the specified text field.

ShouldReturn(IUITextFieldDelegate, UITextField)

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

Applies to