I\'ve got some UITableViewCells that need to change their height depending on the length of the strings inside. I\'m calculating the necessary height inside tableView:
My solution was to call the tableView:cellForRowAtIndexPath:
inside the implementation of tableView:heightForRowAtIndexPath:
as following
- (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
[self tableView:aTableView cellForRowAtIndexPath:indexPath];
return headerHeight;
}