Disable bounce in scroll mode disable horizontal scrolling in pageView Controller

Only the first view shows when I want to scroll to the second view, it does not scroll PS I have a pageView controller and this code inside it

    for view in self.view.subviews {
        if let scrollView = view as? UIScrollView {

            scrollView.delegate = self

            scrollView.bounces = false
        }
    }
+4
source share
1 answer

You can disable its utility when choosing a scroll view in.

enter image description here

0
source

All Articles