I am working on the "user profile" section of the iOS 7 iPad application. In this area, we guide users through a series of pages on which they enter information about themselves - biographical information, family, contact information, etc. As I did, through the UIPageViewController, where each page of the user’s profile is its own UIViewController (with a UIScrollView, since each page can drag out), so that the user can smoothly wade between pages as they go through. On several pages, we also have UITableViews (not taking up the entire screen, since this is an iPad application, not an iPhone application) so that the user can add information. Thus, the general simplified hierarchy of views on these pages will be:
UIPageViewController
UIScrollView
UITableView
I would like the user to be able to use gestures to delete to remove cells from the UITableView. Unfortunately, the panorama gesture that activates the "delete-delete" in the UITableView is selected by the UIPageViewController and scrolls to the next page, rather than showing the delete button. Getting the delete button to display is very incompatible - probably 9 times out of 10 it will go to the next page.
Ideally, I would access the gesture recognizer in the UIPageViewController and try to set up some dependency between it and the gesture recognizer in the UITableView or set the logic for the UIPageViewController gesture recognizer so that it doesn't work in the UITableViewController area, or something. However, because of this phenomenon (be it an error or a function), I cannot access the recognizing gesture of the UIPageViewController, so I cannot do things like set their delegates and override methods such as gestureRecognizerShouldBegin. I also cannot get gesture recognizers in the UIPageViewController view.
Does anyone have any ideas on how to get around this problem?
source
share