swiftuitableviewuitableviewautomaticdimension

Minimum cell height with UITableViewAutomaticDimension


Is it possible to set minimal height for cell? I use dynamic:

tableView.estimatedRowHeight = 83.0
tableView.rowHeight = UITableViewAutomaticDimension

But I need to set minimal height for cell when my news title label text is in one line.


Solution

  • Have you tried creating a constraint in your custom UITableViewCell's view of height >= 60.0?