title: how can i increase the height of an inputAccessoryView
body: <p>I have spent several days on this with no solution in sight.  </p>
  
  <p>I have an <code>inputAccessoryView</code> which consists of a <code>UIView</code> containing a <code>textView</code> and two buttons. The behaviour of the <code>inputAccessoryView</code> is as expected and works fine in all cases except one.  </p>
  
  <p>When the height of the textView increases, I am trying to increase the height of the <code>inputAccessoryView</code> by the same amount.  When I redefine the height of the <code>inputAccessoryView</code> in <code>textViewDidChange</code>, the <code>inputAccessoryView</code> increases height downwards over the keyboard instead of upwards.  </p>
  
  <p>I have tried many different suggestions from SO but nothing has worked.  I guess it is the automatically added <code>NSLayoutConstraint</code> of the <code>inputAccessoryView</code> but I have no idea how to change that value in swift and iOS 8.3.</p>
  
  <pre><code>func textViewDidChange(textView: UITextView) {
  
      var contentSize = messageTextView.sizeThatFits(CGSizeMake(messageTextView.frame.size.width, CGFloat.max))
  
      inputAccessoryView.frame.size.height = contentSize.height + 16
  
  }
  </code></pre>
  
  <p>adding </p>
  
  <pre><code>inputAccessoryView.setTranslatesAutoresizingMaskIntoConstraints(true)
  </code></pre>
  
  <p>to the above code helps and the inputAccessoryView height increases upwards correctly however I get Unable to simultaneously satisfy constraints for several constraints and it is very difficult to identify the offenders.  Also I get an odd effect of the textView creating extra space below on every second instance of a new line.</p>
  
  <p>thanks.</p>