Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

avoiding UITapGestureRecognizer in button?

Tags:

iphone

ipad

I am using UITapGestureRecognizer for double tap.When I double tab on UIButton , it works.but i want to avoid it? any built in method?


1 Answers

You can stop the UITapGestureRecognizer from cancelling other events (such as the tap on your button) by setting the following boolean:

[tapRecognizer setCancelsTouchesInView:NO];
like image 162
Joerg Avatar answered Aug 25 '26 17:08

Joerg