title: UITextView resign first responder on 'Done'
body: <p>I have been searching around the web for about an hour now, and cannot find any code to help me with this.</p>
  
  <p>I have a <code>UITextView</code> that I need to resign first responder of when the user presses the 'Done' button on their keyboard.</p>
  
  <p>I have seen code floating around the internet like this:</p>
  
  <pre><code>-(BOOL) textFieldShouldReturn:(UITextField *)textField {
   [textField resignFirstResponder];
   return NO;
  }
  </code></pre>
  
  <p>But that will not work for a <code>UITextView</code>.
  Simply put,
  How can I tell when the user presses the done button on the keyboard?</p>