Calling function when user taps anywhere on screen

Viewed 1432

In my app I have a small menu I made which is basically a UIView with two button on it. The menu opens when the user taps a button and closes also when the user taps the same button. I'd like the menu to close when the user taps anywhere outside of the menu UIView.

The menu:

I'd like this menu to be closed.

5 Answers
Related