Who cares how many times it is called :)
Your implementation of heightForRowAtIndex: should be fast enough so that the table view can call it whenever it wants, and that doesn't matter.
, , ( didAnimateFirstHalfOfRotationToInterfaceOrientation: etc UIViewController.), , UIKit UITableViewController - , ?
willRotateToInterfaceOrientation: , , - , ?
- : (, !)
- (NSInteger)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
return rowHeight;
}
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration {
[super willAnimateRotationToInterfaceOrientation:interfaceOrientation duration:duration];
rowHeight = (UIInterfaceOrientationPortrait == interfaceOrientation) ? 100 : 200;
[tableView reloadData];
}