Beispiel #1
0
        public static void OpenLeft(this UIViewController controller)
        {
            SlideMenuController slideController = controller.slideMenuController();

            if (slideController != null)
            {
                slideController.OpenLeft();
            }
        }
Beispiel #2
0
        public static void CloseRight(this UIViewController controller)
        {
            SlideMenuController slideController = controller.slideMenuController();

            if (slideController != null)
            {
                slideController.CloseRight();
            }
        }
Beispiel #3
0
        public static void AddPriorityToMenuGesuture(this UIViewController controller, UIScrollView targetScrollView)
        {
            SlideMenuController slideController = controller.slideMenuController();
            var recognizers = slideController.View.GestureRecognizers;

            if (slideController != null && recognizers != null)
            {
                foreach (UIGestureRecognizer gesture in recognizers)
                {
                    if (gesture is UIPanGestureRecognizer)
                    {
                        targetScrollView.PanGestureRecognizer.RequireGestureRecognizerToFail(gesture);
                    }
                }
            }
        }