UIKit.UIActionSheet.DismissWithClickedButtonIndex Method
Will dismiss the action sheet, optionally animated if specified.

Syntax

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

Parameters

buttonIndex
The inde of the button that was clicked.
animated
Set to true if the action sheet is to be animated when dismissed.

Remarks

This method provides a programatic way to dismiss an action sheet.

Requirements

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