UIGestureRecognizer not receiving touches during UIScrollView deceleration?

Instead of creating a new UIPanGestureRecognizer maybe you could use the one on the UIScrollView and add your own pan logic to that gesture recognizer with - (void)addTarget:(id)target action:(SEL)action .

Up vote 0 down vote favorite share g+ share fb share tw.

I've been trying to create a UITextView subclass that handles swiping away the keyboard like in the Message.app. I have a UIPanGestureRecognizer added to the keyWindow of my app, and the gesture delegate is configured for shouldRecognizeSimultaneouslyWithGestureRecognizer. Everything works fine except for when the UIScrollView is decelerating, during that phase it is possible to pan without the touches being registered.

You can take a look at a very simple github sample project here. I have tried adding the UIPanGestureRecognizer directly to the viewController. View and to the scrollView, same issue occurs.

I have also tried setting scrollView. PanGestureRecognizer requireGestureRecognizerToFail: with my UITextView subclass gesture recognizer. Any ideas as to why this may be happening?

Iphone ios uiscrollview uigesturerecognizer link|improve this question asked Feb 18 at 21:39Mike A499312 79% accept rate.

Instead of creating a new UIPanGestureRecognizer, maybe you could use the one on the UIScrollView, and add your own pan logic to that gesture recognizer with - (void)addTarget:(id)target action:(SEL)action.

Don't know why I didn't think of this first. The UIScrollView panGesture was clearly working, may as well use it. Simplifies the code too.

Thanks! – Mike A Feb 21 at 19:55.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions