Instance Property

clearButtonMode

Controls when the standard clear button appears in the text field.

Declaration

@property(nonatomic) UITextFieldViewMode clearButtonMode;

Discussion

The standard clear button is displayed at the right side of the text field, when the text field has contents, as a way for the user to remove text quickly. This button appears automatically based on the value set for this property.

The default value for this property is UITextFieldViewModeNever.

See Also

Managing Overlay Views

leftView

The overlay view displayed on the left (or leading) side of the text field.

leftViewMode

Controls when the left overlay view appears in the text field.

rightView

The overlay view displayed on the right (or trailing) side of the text field.

rightViewMode

Controls when the right overlay view appears in the text field.

UITextFieldViewMode

Defines the times at which overlay views appear in a text field.