I\'ve got a little problem with the UIPanGestureRecognizer. The Recognizer does not report the UIGestureRecognizerStateEnded state if the user panned to the top left (means nega
The line
[self addGestureRecognizer:pan];
looks wrong to me.
It seems like you are creating the gesture recognizer from inside a UIView and not a UIViewController
. So if the view is dealloc both it and the gesture recognizer will disappear.
Better to create the gesture recognizer from the UIViewController
. Also the UIViewController
needs to keep a strong point to the recognizer.