There is a UIView named viewA, viewA has a UITapGestureRecognizer, I can’t modify the recognizer’s target code.
And viewA has many subviews. For some specific subviews, I want they don’t deliver tap event to viewA when I touch them (for other subviews, they should deliver tap event to viewA). What should I do?
There is a UIView named viewA, viewA has a UITapGestureRecognizer, I can’t modify the
Share
Set viewA as delegate of recognizer. then use delegate method:
check if touch is in unwanted subviews: