I have an issue with auto-sizing cells in tableview and wondering if anyone has any suggestions for me. I have a label that I set with text. I have Lines set to 0 in IB. I have also included
override func viewDidLoad() {
super.viewDidLoad()
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowHeight = 90
tableView.allowsSelection = true
}
When i scroll down to more cells. SOMETIMES, most of the time, the label does not update its size to include the whole text.
I set the text after in a background thread after I fetch using firebase, I am using firebase and parse. After I set the text, I have:
postCell.updateConstraints()
postCell.layoutIfNeeded()
Any ideas? THANKS Screenshot1 Screenshot2