How do I not allow UIPageViewController to bounce? I would not like to allow the user to drag past the boundaries.
Asked
Active
Viewed 3,508 times
0
-
1Isn't there an option for this in the properties inspector in the interface builder? – Arc676 Jan 07 '16 at 10:23
-
What's the option called? – Lucky Jan 07 '16 at 10:26
1 Answers
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
-
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
-
-
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