UIKit.UIAlertView.DismissWithClickedButtonIndex Method
Closes an alert view with an optional animation.

Syntax

[Foundation.Export("dismissWithClickedButtonIndex:animated:")]
public virtual void DismissWithClickedButtonIndex (bool animated, nint index)

Parameters

index
The index of the button that the user pressed before this method was called.
animated
A boolean indicating whether the transition should be animated when removing the alert view.

Remarks

This method can be used to close an alert view when an application moves to the background, giving the application an opportunity to do any cleanup and saving operations.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0