Dynamic UITableViewCell not resizing according to the content
<p><a href="https://i.stack.imgur.com/zBDUc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/zBDUc.png" alt="enter image description here"></a></p>

<p>Senario A:
If I set the label content in <code>cellForRowAtIndexPath</code>, the cell correctly get resized. </p>

<p>Senario B: 
If I change the text content in custom action in cell, the cell sized does not get changed.(I do call setNeedsLayout + layoutIfNeeded)</p>

<p>How to fix this?</p>

<p><strong>EDIT:</strong> </p>

<p>1) I have set, 
<code>myTableView.estimatedRowHeight = 71.0</code>
<code>myTableView.rowHeight = UITableViewAutomaticDimension</code></p>

<p>2) I have correctly added auto layout constraints.</p>