I am have an app which requires to display user comments within a table cell. How can I set the dynamic height of the cell based on the contents of the cell like in Instagram?>
Bear in mind you can't reference the cell from this method, so you want to calculate the height of the contents separately and use it to generate the height.