How to change UIView height based on elements inside it
<p>I am creating a chat interface and have a UITextview and button for sending message inside a UIView. The height of UITextView changes based on its content size but UIView height does not change with it. <a href="http://i.stack.imgur.com/p7nwO.png" rel="nofollow">Chat view</a></p>

<p>I will appreciate any help on this.</p>

<p>Here are constraints on the message field <a href="http://i.stack.imgur.com/ZQ7oL.png" rel="nofollow">Message field constraints</a></p>