It seems that the button is simply not pressed.
I tried:
UIPageViewController gesture recognizers
However here is catch
if the UIPageViewController page transition is UIPageViewControllerTransitionStyleScroll, then
self.view.gestureRecognizers = self.pageViewController.gestureRecognizers; NSLog(@"%@",self.pageViewController.gestureRecognizers.description); NSLog(@"%@",self.pageViewController.gestureRecognizers.description);
will be just empty.
I tried adding my own gecureRecoqnizers instead of a button in the subview of the UIViewControllers. This still does not work.
So, I have a UIPageViewController that displays a UIViewController whose view has some button. How do I click this button?
I also tried both solutions here:
http://emlyn.net/posts/stopping-gesture-recognizers-in-their-tracks
Nothing works. First of all, I canβt disable the UIPageViewController gesture recognizers because there isnβt such a thing. In scrollView mode, the UIPageViewController does not have gesture reminders.
I tried adding my own gesture guides to my own button, but they are never called.
I want the UIPageViewController to still process napkins. But do not click.
I cannot access the gestures recipeers of UIPageViewControllers because self.pageViewController.gestureRecognizers is empty. The UIPageViewController seems to simply "absorb" all the crane events. So my button does not receive it.
I can add a button in front of the UIPageViewController, but this button will absorb the swiping action that I want the UIPageVIewController to still handle.
By the way, if we use a template from iOS (we create a page-based application and change the transition to page scrolling viewcontroller.gesturerecoqnizers will be empty
- (void)viewDidLoad { [super viewDidLoad];