I have successfully made my custom uitableviewcell to work with automatic dimension. In my custom cell, I have a label (used to display captions, can be one line or multilines) and an imageview. Auto-layout is set correctly and I specified estimated row height and set row height to be automatic dimension. My custom cell dynamically changes height based on UILabel text when I used dummy data that are setup in viewDidLoad.
However, I have to make API call inside my custom tableviewcell class, i.e inside cellForRowAtIndexPath method to fetch corresponding data to display in my UILabel and UIImageView. After successfully fetching the data, I update the UI elements. In this case, however, the cell is not changing height dynamically and my UILabel is truncated to one line.
I have tried calling reloadRowsAtIndexPath method, but it is causing weird bounces when I scroll the tableview. I have tried hours, any idea how to make automatic tableview row height to work when after fetching data from API call?