How do I get the coordinates for finger tapping in UIView? (I would prefer not to use a big array of buttons)
Thank you
Swift 3 answer
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.tapAction(_:))) yourView.addGestureRecognizer(tapGesture) func tapAction(_ sender: UITapGestureRecognizer) { let point = sender.location(in: yourView) }