I have a UIPageViewController
that handles turning the pages of my "book". However, each book page is a ViewController
with a UIScrollView
as a subview
. The UIScrollView
is only able to scroll vertically due to the contentSize
. The problem is that while the user scrolls the scrollview
vertically, as the scrollview
is still scrolling/decelerating the user can not turn the page. A very easy way to see this is to scroll the page and then try to tap the edge of the view. This would normally change the page, and it does change the page when the scrollview
is not moving. However, when it is moving, the tap causes the scrollview to stop moving instead of turn the page.
How do I cancel the scrollviews
gestures if the UIPageViewController
is trying to use the gesture to turn the page by tapping or panning the page to cause the page turn animation?
For an example of the behavior I want to achieve, check the Twitter's official client on the iPhone. It's possible to swipe from Timeline to Discover while the feed is still decelerating from scrolling.