美文网首页
设置导航栏右滑返回功能

设置导航栏右滑返回功能

作者: KermitX | 来源:发表于2017-01-06 11:00 被阅读21次
// #include <objc/runtime.h>
    // 开启
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        //        self.navigationController.interactivePopGestureRecognizer.enabled = YES;
        self.navigationController.interactivePopGestureRecognizer.delegate = nil;
        //        object_setClass(self.navigationController.interactivePopGestureRecognizer, [UIPanGestureRecognizer class]);
    }

相关文章

网友评论

      本文标题:设置导航栏右滑返回功能

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