获取UITableCell高度的两种方法

1、

NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];

CGFloat cellHeight = [self tableView:self.tableView heightForRowAtIndexPath:indexPath];

2、

NSIndexPath *indexPath = [self.tableViewindexPathForCell:cell];

CGFloat cellHeight = [self.tableView rectForRowAtIndexPath:indexPath].size.height;

posted @ 2013-03-24 17:04  Story Of My Life  阅读(2427)  评论(0编辑  收藏  举报