I'm using UITableViewAutomaticDimension for adjusting the cell height which has a dynamic label and an image.
tableView.rowHeight = UITableViewAutomaticDimension;
tableView.estimatedRowHeight = 80.0;
I want to resize the cell as the content of the label increases and it is working perfectly.
I want to keep a minimum height for the cell(say 80) for the image to fit in always even if the label has no content at all. I've applied autolayout and set constant height, width, top space and leading space constraints to the imageview. But the cell height is going lower than the constraint height when the label content is less.
What should I do to make the cells to keep a minimum height to fit the imageView while using the 'UITableViewAutomaticDimension' feature.
Thanks in advance.
