title: How to make the keyboard disappear from a UITextView?
body: <p>I have a screen in my application that only consists of a UITextView. When first entering this screen, the keyboard is not present until you tap to edit.</p>
  
  <p>But if you close the screen, and then come back to it, the keyboard is still visible, presumably remembering its status from before. I want it to be gone when re-entering the view.</p>
  
  <p>Any tips? I've tried the following:</p>
  
  <pre><code>-(void)textViewDidEndEditing:(UITextView *)textView {
    NSLog ( @"end editing" );
    [textView resignFirstResponder];
  }
  </code></pre>
  
  <p>Looking at the console, it does indeed get called when closing that screen, but it doesn't seem to help - the text view still has the keyboard when i re-enter the screen.</p>
  
  <p>Thanks a lot</p>