Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            var handler = new DoActionSheetHandler(Console.WriteLine);

            var button = new UIButton(UIButtonType.System);
            button.Title(UIControlState.Normal);

            var buttons = new UIButton[] {
                button
            };

            var sheet = new DoActionSheet();
            sheet.ShowC("Cancel", buttons, handler);
        }
Пример #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            var handler = new DoActionSheetHandler(Console.WriteLine);

            var button = new UIButton(UIButtonType.System);

            button.Title(UIControlState.Normal);

            var buttons = new UIButton[] {
                button
            };

            var sheet = new DoActionSheet();

            sheet.ShowC("Cancel", buttons, handler);
        }