Hello I have an opengl view and on that I have a tab bar. I'm using a tap recognizer to tap different 3d objects on screen. In the tab bar I have a button but it doesn't work because the tap recognizer catches these taps too. How do I stop this? I've already tried this:

your if-statement can never return false - a button is not a view... But you could check via a breakpoint in the debugger which type the view is you get on different tap positions.
–
AxelFeb 3 '11 at 12:01

Oh..I just noticed that UIBarButtonItem is not an UIView :) Thanks.
–
gyozo kudorFeb 3 '11 at 12:14

This worked where hit testing on the gesture recognizer's view failed. To be clear, I was working within a UITableView and the gesture's location was reported as {0, contentOffset - someConstant}. Checking the touch's view is a good solution. Thanks.
–
JustinMay 4 '11 at 17:28