I tried this solution:
UIButton interaction inside UIPageViewController
It says I should set delegate UIPageViewController gesture recoqnizer. But it returns zero.
For example, if I subclass of UIPageViewController and in viewDidload I do this:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
PO(self.gestureRecognizers);
PO(self.view.gestureRecognizers);
}
I got:
self.gestureRecognizers: (
)
self.view.gestureRecognizers: (null)
Hence, I cannot set delegate for the UIPageViewController's gesture recoqnizers because I can't have a pointer to it. But that UIPageViewController absorb all taps that my button doesn't get pressed. So what should I do?
I tried many solutions from various similar questions in stack overflow. It all fails.
This is a simple problem. I have a UIButton inside a UIPageViewController. Why it has be to be this difficult?
What is the delegate of UIPageViewController's gesture recoqnizers anyway?
Also UIPageViewController doesn't have rootViewController and I am very confused why people say it has.