I\'m new to IOS programming, I\'m displaying a view when a button is clicked, using the following code inside the button method.
@IBAction func moreButton(_
Inside the moreButton selected, you can do something like this
@IBAction func moreButton(_ sender: Any)
{
self.helpView.isHidden = false
let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissView))
view.addGestureRecognizer(tap)
}
func dismissView() {
self.helpView.isHidden = true
self.view.removeGestureRecognizer(tap)
}