I have a UITableView with UITableViewCells that are filled in the cellForRowAtIndexPath method with UILabels etc.
I’d like to change the height of the UITableViewCell, after I added the UILabels to the cell.
How can I do this?
I read a lot about doing it in the heightForRowAtIndexPath method, but this one is called before cellForRowAtIndexPath, so the new custom height is unknown when the heightForRowAtIndexPath is called.
So how can I set the height of my UITableViewCell in the cellForRowAtIndexPath method?
Thanks in advance, wasted lots of time on this one.
I can change the contentView of a UITableViewCell, that works fine 🙂 If I change that height in my
cellForRowAtIndexPathfunction and call[tableView beginUpdates]right after, it changes well.