I want to implement the -(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch gesture delegate in the pageviewcontroller.m file , but I cannot get any gesture like:
NSArray *temp = self.gestureRecognizers;
NSLog(@"count %i",temp.count);
NSArray *temp = self.view.gestureRecognizers;
NSLog(@"count %i",temp.count);
for (UIGestureRecognizer *gR in temp) {
gR.delegate = self;
}
in the above code, self indicates a pageview.
therefore, I cannot assign a delegate to pageviewcontroller gestures.
Edited Part:
OK I realized I don’t have a gesture object due to the uipageviewscroll style.
But I have a problem, I need to turn off the hardview arrow pageviewcontroller , and you need to scroll the viewcontroller page with two buttons, for example, if the user is trying to pan, and the starting point is inside my uibuttons frame, and then the viewviewcontroller should not scroll otherwise.
transitionStyle UIPageViewControllerTransitionStyleScroll.
...