/// <summary> /// Shows a native alert view. /// </summary> /// <param name="title">Title.</param> /// <param name="message">Message.</param> /// <param name="cancelButton">Title of the cancel button or null if no cancel button.</param> /// <param name="otherButtons">Titles of other buttons or null if no other buttons.</param> /// <param name="style">Style of the alert.</param> public static void ShowAlert(string title, string message, string cancelButton, string[] otherButtons, UIAlertViewStyle style) { _alertView = new UIAlertView(title, message, null, cancelButton, null); _alertView.alertViewStyle = style; if (otherButtons != null) { foreach (var button in otherButtons) { _alertView.AddButton(button); } } _alertView.DidDismissWithButtonIndex += _AlertViewDismissed; _alertView.Show(); }