UIAlertController.AddTextField(Action<UITextField>) Method

Definition

Adds a UITextField object to this UIAlertController to display to the user, and also includes a configurationHandler that the app developer can use to change the text field properties.

[Foundation.Export("addTextFieldWithConfigurationHandler:")]
public virtual void AddTextField (Action<UIKit.UITextField> configurationHandler);
abstract member AddTextField : Action<UIKit.UITextField> -> unit
override this.AddTextField : Action<UIKit.UITextField> -> unit

Parameters

configurationHandler
Action<UITextField>

Method that will be invoked with a UITextField to be configured.   The method should configure the UITextField appropriately.

Attributes

Remarks

This method can be called multiple times to add mulitple text fields into the alert controller.

Applies to