Look at using a UIPanGestureRecognizer
to detect the touch movements. Use the translationInView:
of the gesture to set the view y
position. The translation is the total movement since the start of the gesture so you don't need to remember and accumulate the offset position yourself.
The main thing to worry about while implementing this is bounding the y
position of the view so that no matter how far the user drags the view won't go too high or low on the screen.