There is a UIView full screen, you need to create an animation like on a UIScrollView (normal scrolling up and down with returning the object to its original position) have an idea to implement using UITouch But maybe there is a simpler method? Is it possible to create a UIScrollView with the size of the full screen, and somehow prescribe it to be animated?

  • Why don't you want to place your UIView in a UIScrollView if you need a simple scroll? - VAndrJ
  • If the UIScrollView is stretched to the size of the screen, it will not be animated, the animation will start if the UIScrollView is expanded more than the UIScreen. And I need an element with a height of UIScreen. (I’m changing in advance if I don’t have a clear idea) - Victor Mishustin
  • one
    Add your UIView to UIScrollView and write scrollView.alwaysBounceVertical = true . If that is necessary, I will transfer to the answer. - VAndrJ
  • Thank you very much, I was looking for this property, if you want you can transfer it to the answer, I’ll apn it. - Victor Mishustin

1 answer 1

Add your UIView in UIScrollView and write:

 [_scrollView setAlwaysBounceVertical:YES]; 

Swift:

 scrollView.alwaysBounceVertical = true 
  • Thanks for the help! - Victor Mishustin