Swift UITableViewAutomaticDimension is not working

前端 未结 4 857
时光取名叫无心
时光取名叫无心 2021-01-28 18:03

I have got a table in my Swift project like this

var tableView: UITableView! 
tableView = UITableView()
tableView.dataSource = self
tableView.delegate = self
ta         


        
4条回答
  •  离开以前
    2021-01-28 18:26

    Pin the view's constraints to the superview's edges. Also call the estimatedRowHeight.. Remember to call a reload from the table to invoke height calculation for each cell to display.

提交回复
热议问题