Пример #1
0
        public static void Show(string messageText)
        {
            var mb = new UIAlertView{Message = messageText};
            var back = new UIImageView(new UIImage("Images/messageBoxBack.png"));

            mb.Show();
            mb.Subviews[0].Alpha = 0f;
            var label = ((UILabel) mb.Subviews[1]);
            label.TextColor = UIColor.DarkGray;
            label.ShadowColor = UIColor.Clear;
            back.Frame = new RectangleF(0,0,mb.Bounds.Width, mb.Bounds.Height);
            back.Layer.CornerRadius = 15;
            back.Layer.MasksToBounds = true;
            back.Layer.BorderColor = UIColor.FromRGB(193,183,154).CGColor;
            back.Layer.BorderWidth = 2f;

            mb.AddSubview(back);
            mb.SendSubviewToBack(back);
        }