Where to read the provided height value in an UITableViewCell?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-21T18:18:41Z Indexed on 2010/04/21 18:23 UTC
Read the original article Hit count: 142

Filed under:
|

I made a UITableViewCell subclass, and now I want that subclass to be "clever". It should align it's contents to the height of the row. But for this, the cell must know what height value was provided for it in this method:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

However, no matter what value I assign here, my cell's frame is 44 px height at initialization time (default style). Is there any way I can get that value from the cell at initialization time?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview