Basically I have a scrollView, on which there is another view. On that view I also have a UITapGestureRecognizer.
I'm animating scrolling of the scrollView. However, during this scrolling animation, tap gesture recognizer doesn't actually recognize taps.
Any ideas?
For best practise, you can use button action instead of
UITapGesture
by addingUIButton
. the reason is simple, to manage the button is far much simple then theUITapGesture
but I am not saying useUIButton
instead of tap gesture all the time, its all about your requirement.For your case, add this line
and make sure your view is added in the
UITapGesture
andUITapGesture
method is properly implemented in your code work.For more basic, go with these two tutorials,
First tutorial | Second tutorial
If you still face any problem then let me know.