//预设高度
tableView.estimatedRowHeight = 200
tableView.rowHeight = UITableViewAutomaticDimension
//高度写入模型方式
viewModel.cellHeight = CGRectGetMaxY(bottomToolView.frame)
var cellHeight : CGFloat = 0
let viewModel = viewModels[indexPath.row]
return viewModel.cellHeight