There is a UIScrollView with content, how to set up a UIScrollView, so that when it rises to the upper border, it will not scroll further (at the same time, after tach it returns to the place (creating a swaying effect)).

    1 answer 1

    Disable completely:

    scrollView.bounces = NO; 

    Disable only for horizontal or vertical axis:

     scrollView.alwaysBounceVertical = NO; scrollView.alwaysBounceHorizontal = NO; 
    • Thank you so much !! - Victor Mishustin
    • @ Viktor Mishustin if the answer came up to you, accept it by clicking the checkmark on the left below the rating. - Max Mikheyenko