I have a UIView that has a UIPanGestureRecognizer attached to it the gesture is working fine except that the starting point is not where the pan first started it is usually
To get around this you could try reseting the translation point when the gesture recognizer begins. For example, start your action method out like so:
- (void)panGesture:(UIPanGestureRecognizer *)recognizer;
{
if ( recognizer.state == UIGestureRecognizerStateBegan )
{
CGPoint point = ...; // The view's initial origin.
UIView *superview = [recognizer.view superview];
[recognizer setTranslation:point inView:superview];
}
}