self.tableView.rowHeight = UITableView.automaticDimension; self.tableView.estimatedRowHeight = 44.0; // set to whatever your "average" cell height is