Ari Porad
Ari Porad

Reputation: 2922

Change sensitivity of UIPageViewController

I have an app from the page based application template in Xcode.

The problem is that each page is part of a notebook, so you can draw on it. I am doing this with a custom gesture recognizer.

The problem is that on pages with another page on each side you can't draw because it thinks you are turning the page, how do I change the sensitivity of the page view if the gesture recognizers are not in the storyboard?

Upvotes: 0

Views: 538

Answers (1)

anon
anon

Reputation:

You can get the gesture recognizers of the page view controller from the gestureRecognizers property. Then call requireGestureRecognizerToFail: with your own gesture recognizer on each of them.

Upvotes: 1

Related Questions