У меня есть UITableViewCell, который я создаю в tableView:cellForRowAtIndexPath:
. В этом методе я вызываю:
UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil] autorelease];
NSLog(@"Cell height: %f", cell.contentView.frame.size.height);
Это дает мне возвращаемое значение 44.000000
.
Тогда в моем tableView:didSelectRowAtIndexPath:
методе я вызываю:
UITableViewCell *cell = [tableView cellForRowAtIndexPath: indexPath];
NSLog(@"Cell height: %f", cell.contentView.frame.size.height);
И это дает мне возвращаемое значение 43.000000
. Разве они не одна и та же клетка? Что дает?