In my case I have a view with content. I want to scroll this content on UILongPressGestureRecognizer
events:
- if the touch position y is enough near the up view border then scroll up;
- if the touch position y is enough near the bottom view border then scroll down.
I can't simply use scrollView so I used CATransform3D
structs and animateWithDuration:...
methods. The problem is I don't know how long should I scroll (the duration of the scroll animation). The second problem is animation should be called when the touch position (of long press gesture) is changed - it seems easy but may have influence on the final solution.
How to solve such issue?