I need to change row height in cellForRowAtIndexPath, using UITableView.
heightForRowAtIndexPath executes before cellForRowAtIndexPath, but in cellForRowAtIndexPath I'm settings content to rows, depended on which height must be recalculated.
I need to change row height in cellForRowAtIndexPath, using UITableView.
heightForRowAtIndexPath executes before cellForRowAtIndexPath, but in cellForRowAtIndexPath I'm settings content to rows, depended on which height must be recalculated.
You can set the height in the viewDidLoad for all cells
self.tableView.rowHeight = 88.0
or use the event heightForRowAt where u have the IndexPath for the cell
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 88.0
}