Reputation: 75
content of the cell is hiding. I tried to increase the height of cell but its not working.
I tried:
self.tableView.estimatedRowHeight = 80
self.tableView.rowHeight = UITableViewAutomaticDimension
and also tried
self.tableView.setNeedsLayout()
self.tableView.layoutIfNeeded()
Please help me to figure out what's wrong
Upvotes: 1
Views: 149
Reputation: 7741
Check your vertical constraints for labels. You need to set fixed spacing between the following:
This way all three labels will have dynamic height and cell will have appropriate height as well.
Upvotes: 1