title: UITextView Stretches Over UIToolbar
body: <p>I have a UITextView taking up most of the screen, with a UIToolbar right underneath it. When the user edits the UITextView and types in enough text, the text view will gradually stretch right over the UIToolbar.</p>
  
  <p>NoteDetail is the name of the text view. I've tried grabbing the size of the tool bar, which is about 50, and subtracting it from the frame size like so:</p>
  
  <pre><code>CGRect frame = NoteDetail.frame;
  frame.size.height = NoteDetail.contentSize.height - 50;
  NoteDetail.frame = frame;
  </code></pre>
  
  <p>This didn't cause the toolbar to stay put either, the text view just goes right over it once the text view grows big enough. I've also tried using auto layout and adding constraints, which didn't work well. Does anyone know how to prevent the textview from stretching over the tool bar when it starts to stretch?</p>
  
  <p>Here is the screenshots, this:</p>
  
  <p><img src="https://i.stack.imgur.com/SAZnp.png" alt="enter image description here"></p>
  
  <p>Turns to this:</p>
  
  <p><img src="https://i.stack.imgur.com/HiZT3.png" alt="enter image description here"></p>