Enumeration

UITextFieldViewMode

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

Declaration

typedef enum UITextFieldViewMode : NSInteger {
    ...
} UITextFieldViewMode;

Topics

Constants

UITextFieldViewModeNever

The overlay view never appears.

UITextFieldViewModeWhileEditing

The overlay view is displayed only while text is being edited in the text field.

UITextFieldViewModeUnlessEditing

The overlay view is displayed only when text is not being edited.

UITextFieldViewModeAlways

The overlay view is always displayed if the text field contains text.

See Also

Managing Overlay Views

clearButtonMode

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software