title: iOS: right swipe gesture not responding in UIPageViewController
body: <p>I am currently facing a scenario that I am using a <code>UIPageViewController</code> on a view &amp; I want the right swipe gesture to work when user swipe right side from index value <code>0</code>, so I am trying to add a right swipe gesture to <code>UIPageViewController</code> by the following code:</p>
  
  <pre><code>UISwipeGestureRecognizer *rightRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(rightSwipeHandle:)];
  rightRecognizer.direction = UISwipeGestureRecognizerDirectionRight;
  [rightRecognizer setNumberOfTouchesRequired:1];
  //Edit 1
  [self.pageViewController.view addGestureRecognizer:rightRecognizer];
  </code></pre>
  
  <p>but, while I am adding gesture to <code>pageviewcontroller</code> I am getting following error message (Solved by @Lyndsey Scott answer)</p>
  
  <pre><code>no visible interface uipageviewcontroller declares the selector addgesturerecognizer
  </code></pre>
  
  <p>Can anyone guide me that how can I implement the right swipe in this <code>pageViewController</code></p>
  
  <p><strong>Edit 1:</strong> Replaced the code provided by @Lyndsey Scott, removed the error, but problem still exists that I am not able to trigger that swipe event.</p>