2

The setup in Storyboard:

NavigationController >> AViewController >> BViewController

I am using ECSlidingViewController 2.0, I want to remove the panGesture for BViewController, I put the code in BViewController under -(void)viewWillAppear. but AVideController also removed the panGesture. am i doing wrong ?

[self.navigationController.view removeGestureRecognizer:self.slidingViewController.panGesture];
Rashad
  • 11,057
  • 4
  • 45
  • 73
user3491799
  • 322
  • 4
  • 16

1 Answers1

0

Try this:

[self.view removeGestureRecognizer:self.slidingViewController.panGesture];

Hope this helps.. :)

Rashad
  • 11,057
  • 4
  • 45
  • 73