title: Autosize UITextView dependent on text
body: <p>I want to adjust my UITextView dependent on the text size,</p>
  
  <pre><code>CGRect frame = _text.frame;
  frame.size.height = (_text.contentSize.height);
  frame.size.width = _text.contentSize.width;
  _text.frame = frame;
  </code></pre>
  
  <p>I've tried this code but the problem is that even if there are 5 lines of text it only shows 2 lines (you can scroll for the rest of the text). How do I fix that it just shows 5 lines?</p>