rowHeight:一般每個cell都固定的話,一般用rowHeight同一設(shè)置行高 默認(rèn)是44;
另一種方法就是實現(xiàn)UITableViewDelegate中的
- (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath {
// return xxx
}
實現(xiàn)了上面的方法之后 通過rowHeight設(shè)置行高會失效!!
estimateRowHeight:預(yù)估行高 (ios7出現(xiàn))