获取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;