I have multiple views defined in my main view. I want to add single tap gesture to all these views. Below is the code I have written, but this registers a tap gesture to the
1 use hitTest:
CGPoint location = [singleTap locationInView:self.view]; id testView = [self.view hitTest:location withEvent:nil];
2 add THE Single TapGesture to multi views, only last view worked.