title: How to disable interactivePopGestureRecognizer disable in iOS9
body: <p>I need to disable the interactivePopGestureRecognizer in my App,I did </p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated
  {
  
      [super viewDidAppear:animated];
  
      // Disable iOS 7 back gesture
  
   if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) 
  {
  
   self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  
          self.navigationController.interactivePopGestureRecognizer.delegate = self;
  
      }
  }
  
  
  - (void)viewWillDisappear:(BOOL)animated
  {
      [super viewWillDisappear:animated];
  
      // Enable iOS 7 back gesture
  
      if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)])
   {
  
   self.navigationController.interactivePopGestureRecognizer.enabled = YES;
  
  self.navigationController.interactivePopGestureRecognizer.delegate = nil;
  
   }
  }
  
  
  - (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
  
  {
  
   return NO;
  }
  </code></pre>
  
  <p>It works for 'iOS8' ,I have an Issue on 'iOS9'.</p>