Iphone - when to calculate heightForRowAtIndexPath for a tableview when each cell height is dynamic?
问题 I have seen this question asked many times but astoundingly, I have not seen a consistent answer, so I will give it a try myself: If you have a tableview containing your own custom UITableViewCells that contain UITextViews and UILabels whose height must be determined at runtime, how are you supposed to determine the height for each row in heightForRowAtIndexPath? The most obvious first idea is to calculate the height for each cell by calculating and then summing the heights of each view