tableViewCell行高问题

rowHeight:一般每个cell都固定的话,一般用rowHeight同一设置行高 默认是44;

另一种方法就是实现UITableViewDelegate中的

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

// return xxx

}

实现了上面的方法之后 通过rowHeight设置行高会失效!!

estimateRowHeight:预估行高 (ios7出现)

你可能感兴趣的:(tableViewCell行高问题)