Detect Single Tap in UIScrollView

There are an increasing amount of occasions when I’d need, and like, to be able to tap the background of an application to hide a keyboard during editing. It just seems to make good UI sense to tap on the main background and hide the keyboard so you can see what you’ve typed properly.
The following article does just that, and explains how to create a new instance of the UIScrollView which checks for a single tap and passes the event into a class of your choice.
iPhoneDeveloperTips.com - Detect Single Tap in UIScrollView
2 years ago