0

How do I not allow UIPageViewController to bounce? I would not like to allow the user to drag past the boundaries.

Lucky
  • 579
  • 6
  • 24

1 Answers1

3

It can't be done without hacks. See this question: Disable bounce effect in UIPageViewController

On the few occassions I've needed to disable the bounce, I've just put all of my views in a UIScrollView and turned off bounces, instead of using UIPageViewController

Community
  • 1
  • 1
chedabob
  • 5,835
  • 2
  • 24
  • 44
  • Yeah I'm thinking about doing this. Just hope paging for UIScrollView isn't as a painful setup as UIPageViewController – Lucky Jan 07 '16 at 10:34
  • And it's not! Very nice paging enabled! – Lucky Jan 09 '16 at 05:41
  • I ran into this as well. Here is a solid tutorial I found on YouTube to use UIScrollView for the same ends: https://www.youtube.com/watch?v=1_daE3IL_1s – BrianS Aug 22 '16 at 18:57