I\'m working on an application where I have a custom subclass of UITableViewCell. I want to make the cell\'s height dynamic based on the text inside it. I try do do that in
tableView heightForRowAtIndexPath is called before cellForRowAtIndexPath, before a cell is displayed, the height needs to be calculated first.
tableView heightForRowAtIndexPath
cellForRowAtIndexPath
you should get text from your data source, not from cell
text
cell