title: iOS 7 iPad: UITableView swipe-to-delete in a UIPageViewController (conflicting gesture recognizers)
body: <p>I am working on a "user profile" section of an iOS 7 iPad application. In this area, we walk the user through a series of pages where they enter information about themselves - biographical information, family, contact info, etc. The way I've set this up is through a UIPageViewController, where each page of the user profile is its own UIViewController (with a UIScrollView, since each page can get long), so that the user can smoothly swipe between pages as they walk through it. On a few of the pages, we also have UITableViews (not taking up the entire screen, since this is an iPad app and not an iPhone app) for the user to add information. So the overall simplified view hierarchy on these pages would be:</p>
  
  <p>UIPageViewController<br>
  UIScrollView<br>
  UITableView</p>
  
  <p>I would like the user to be able to use the swipe-to-delete gesture to delete cells from the UITableView. Unfortunately, the pan gesture which activates the swipe-to-delete in a UITableView is being picked up by the UIPageViewController and scrolls to the next page instead of showing the delete button. Getting the delete button to show is very inconsistent - probably 9 times out of 10 it will scroll to the next page instead.</p>
  
  <p>Ideally, I would access the pan gesture recognizer of the UIPageViewController and try to set up some dependency between it and the UITableView's pan gesture recognizer, or have some logic for the UIPageViewController's gesture recognizer not to fire within the area of the UITableViewController, or something. However, due to <a href="https://stackoverflow.com/questions/13103613/uipageviewcontroller-returns-no-gesture-recognizers-in-ios-6">this phenomenon</a> (whether bug or feature), I cannot access the gesture recognizers of the UIPageViewController, so I can't do things like set their delegate and override methods like gestureRecognizerShouldBegin. I also can't get the gesture recognizers of the UIPageViewController's view.</p>
  
  <p>Does anyone have any ideas for how to circumvent this issue?</p>