I have 3 UIViews, layered on top of one large uiview. I want to know if the user touches the top one and not care about the other ones. I will have a couple of buttons in th
This worked for me:
func respondToGesture(gesture: UIGestureRecognizer) { let containsPoint = CGRectContainsPoint(targetView.bounds, gesture.locationInView(targetView)) }