UIAlertController.AddTextField(Action<UITextField>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.