Skip to content

devinZhou102/ARSPopover.iOS

Repository files navigation

ARSPopover.iOS

Universal popover for iPhone and iPad.

library from : https://github.com/soberman/ARSPopover

Screen-Shots

Example

        partial void UIButton197_TouchUpInside(UIButton sender)
        {
            ARSPopover.iOS.ARSPopover popover = new ARSPopover.iOS.ARSPopover();
            popover.SourceView = sender;
            popover.ContentSize = new CoreGraphics.CGSize(100, 100);
            popover.ArrowDirection = UIPopoverArrowDirection.Down;

            PresentViewController(popover, true, new Action(()=> {
                popover.InsertContentIntoPopover((a,b,c)=> {
                    var button = new UIButton(UIButtonType.RoundedRect);
                    button.SetTitle("Close", UIControlState.Normal);
                    button.SizeToFit();
                    button.Center = new CoreGraphics.CGPoint(50,50);
                    a.View.AddSubview(button);
                    button.AddTarget((s,e) => { popover.ClosePopover(); }, UIControlEvent.TouchUpInside);
                });
            }));
        }

About

Universal popover for iPhone and iPad.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages