public static UIAlert ShowAlert(UIAlertOptions options, bool modal)
        {
            var alert = new UIAlert(options);

            ShowDialog(alert, modal);
            alert.CenterAround(UIScreen.Current);
            return(alert);
        }
示例#2
0
        public static UIAlert GlobalShowAlert(UIAlertOptions options, bool modal)
        {
            var alert = new UIAlert(options);

            GlobalShowDialog(alert, modal);
            alert.CenterAround(UIScreen.Current, -(int)UIScreen.Current.X * 2, -(int)UIScreen.Current.Y * 2);
            return(alert);
        }