Setting UITableViewCell height is expensive

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-05-27T18:11:38Z Indexed on 2010/05/27 18:21 UTC
Read the original article Hit count: 177

I am doing a comparison in

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

It seems like performance of my app really slows down when I check if a cell.detailTextLabel.text isEqualTo:@"None";

What is a better way of doing the comparison and setting the cell height?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c