TranslationInView is a UIPanGestureRecognizer method, and it tells you how far the sensor has moved since the last reset. It resets when the touch drops or you reset yourself.
for instance
- (void) pan: (UIPanGestureRecognizer *) recognizer { if ((recognizer.state == UIGestureRecognizerStateChanged)||(recognizer.state == UIGestureRecognizerStateEnded)) { CGPoint translation = [recognizer translationInView:self]; } }
CGPoint Broadcast increases / decreases the distance the gesture moves.
source share