I want a certain function to activate when the user taps anywhere on the app, and I have no idea how to do this. Any ideas?
Asked
Active
Viewed 46 times
0
-
Add UITapGestureRecognizer to the view of your view controller? – Valent Richie Jun 27 '13 at 01:39
-
Noob here, Not sure what you mean. – OverPoweredNitrogen Jun 27 '13 at 02:07
1 Answers
0
Ray Wenderlich has great iOS articles. I would work through his UIGestureRecognizer example:
http://www.raywenderlich.com/6567/uigesturerecognizer-tutorial-in-ios-5-pinches-pans-and-more
And StackOverFlow usually has great explanations too. For example:
How do I implement the UITapGestureRecognizer into my application
-
Thanks, I did not know what this was called, will check this out. – OverPoweredNitrogen Jun 27 '13 at 02:27
-