I have a tableViewCell with a label inside that could be multiple lines tall. I\'ve set the label\'s Lines property to 0. However, when I make the label\'s text
Setting Dynamic Cell height procedure
Implement delegates of table view mentioned below
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableViewAutomaticDimension
}
func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
return 50 // also UITableViewAutomaticDimension can be used
}