美文网首页
2024-07-29 ios interactivePopGes

2024-07-29 ios interactivePopGes

作者: Bruin_熊先森 | 来源:发表于2024-07-28 21:50 被阅读0次

    新建一个BaseNavigationController 继承 UINavigationController

    <UIGestureRecognizerDelegate>

     self.interactivePopGestureRecognizer.delegate = self;

    - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer*)gestureRecognizer {

        if (self.viewControllers.count == 1){

            returnNO;

        }

        return YES;

    }

    相关文章

      网友评论

          本文标题:2024-07-29 ios interactivePopGes

          本文链接:https://www.haomeiwen.com/subject/gepihjtx.html