Hello, I have an opengl view and I have a tab bar. I use a tap recognizer to use various 3D objects on the screen. I have a button on the tab bar, but it doesnโt work, because the recognition tap also uses these taps. How to stop it? I have already tried this:
- (BOOL) gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { if ([touch.view isKindOfClass:[UIBarButtonItem class]]) return FALSE; return TRUE; }
I think that I am somehow comparing the incorrect classification, because when I debug it always returns TRUE.
objective-c iphone button conflict uigesturerecognizer
gyozo kudor Feb 03 2018-11-11T00: 00Z
source share