This is an example of how to use a UIGestureRecognizer to dismiss the keyboard thorughout an iOS app.