Minimum cell height with UITableViewAutomaticDimension

后端 未结 6 1928
长情又很酷
长情又很酷 2020-12-28 15:21

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

tableView.estimatedRowHeight = 83.0
tableView.rowHeight = UITableViewAutomaticDimension
         


        
6条回答
  •  被撕碎了的回忆
    2020-12-28 15:45

    Set a contentViews heightAnchor to your least required height .

    Swift 4.2 version programatically

    contentView.heightAnchor.constraint(greaterThanOrEqualToConstant: ).isActive = true

提交回复
热议问题