Update constraints of other elements when UITableView height change
<p>I have a <code>UITableView</code> of which I am defining height as 200 in autolayout. Based on that I am laying out other elements below it like <code>UITextField</code> etc. After that in run time I am fetching data from server and populating in <code>UITableView</code> due to which i am updating <code>UITableView</code>'s height based on its content size. Following code I am using for it</p>

<pre><code>self.myTableView.frame = CGRectMake(0 , 0, self.myTableView.frame.width, self.myTableView.contentSize.height)
</code></pre>

<p>But due to this, all the elements placed below <code>UITableView</code> still appear at same location which they were while laying out in Autolayout. Means change in height of <code>UITableView</code> makes no difference to them. Following image depicts this problem. What could be possible solution for this?</p>

<p><a href="https://i.stack.imgur.com/qgTRv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qgTRv.png" alt="enter image description here"></a></p>

<p>Here you can see, text fields are getting overlapped on tableview at run time. I am using Swift 2 in Xcode 7.2</p>