I am creating my custom control from scratch. Like a UIScrollView I have to have a delegate method that triggers when the control starts sliding, something like scrollViewDidScroll.
I thought of putting a call inside touchesMoved checking for every move change, but I did something like for testing and it is very expensive and makes touchesMoved slow.
A second approach would be creating a NSTimer triggering a method every x milliseconds to see if the control is on another position and then trigger the method, but I am not sure about that, because if will be constantly checking the control, consuming CPU even if the control is not moving.
What is the best way to do that? How do you guys would do that?
thanks.
Maybe the timer approach is right, i would suggest that you start the timer at touch start and stop it at touch ended or 3-4 seconds after touch ended if you would calculate the bouncing and deceleration