1、约束必须完整
2、这两句代码务必加上,尤其是 estimatedRowHeight 务必是44
self.tableView.rowHeight = UITableViewAutomaticDimension self.tableView.estimatedRowHeight = 44