Instance Property

textFields

The array of text fields displayed by the alert.

Declaration

@property(nonatomic, readonly) NSArray<UITextField *> *textFields;

Discussion

Use this property to access the text fields displayed by the alert. The text fields are in the order in which you added them to the alert controller. This order also corresponds to the order in which they are displayed in the alert.

See Also

Configuring Text Fields

- addTextFieldWithConfigurationHandler:

Adds a text field to an alert.