设置导航栏右滑返回功能

2017-01-06  本文已影响21人  KermitX
// #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]);
    }
上一篇 下一篇

猜你喜欢

热点阅读