PKRevealController这个框架要怎么禁用掉左右滑动手势??

PKRevealController这个框架要怎么禁用掉左右滑动手势??因为很多地方都不想要它可以划出菜单

在viewdidload中添加

 if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    }