Ok, so I have a UIImageView in a UIView and I want them to be scrollable with my finger. I've made the image view multi touch capable and handled the
method. In this method I simple set the center of my view and image to the location that corresponds to how far it tells me that the users finger has moved. This works fine, and you can move it up and down with no problems.
My question is: how do I make this 'springy' and smooth like Apple's scrolling of tables, where your flick has momentum and the view springs when it hits the end. Is there an easy way to do this or do I have to write all the code that handles this?
At the moment my view moves to exactly where your finger stopped and no more, which feels unnatural on the iPhone.
Code:
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
My question is: how do I make this 'springy' and smooth like Apple's scrolling of tables, where your flick has momentum and the view springs when it hits the end. Is there an easy way to do this or do I have to write all the code that handles this?
At the moment my view moves to exactly where your finger stopped and no more, which feels unnatural on the iPhone.