title: Detect when taps are outside of a UITextView
body: <p>I am working on a program where I have various <code>UITextView</code>s. The problem I am having is that I cannot detect when the user has tapped outside of the <code>UITextView</code> so that I can hide the keyboard. I have tried various actions, but none of them work.</p>
  
  <p>Code I am using with actions:</p>
  
  <pre><code>@IBAction func touchOutsideTextField(sender: UITextField)
  {
      sender.resignFirstResponder()
  }
  </code></pre>
  
  <p>What should I be doing to hide the keyboard instead of this?</p>