title: changing the frame of UITextView as I am typing
body: <p>I can use the code below to set the size of the textView frame, to approximately match the textView's content (the typed text) when I press a button or whatnot. How would I call this whenever a new character is typed, so that the frame would grow or shrink interactively?</p>
  
  <pre><code>- (IBAction)doneEditingText:(id)sender {
      [myTextView resignFirstResponder];
      [myTextView setFrame:CGRectMake(myTextView.frame.origin.x, myTextView.frame.origin.y, myTextView.contentSize.width, myTextView.contentSize.height)];
  }
  </code></pre>
  
  <p>Thanks for reading</p>