UITableViewCell-01

UITableViewCell

1)当所有的cell的高度都一样的时候

  使用:tableView.rowHeight,这样效率高。

2)当cell的高度不一样时

  使用:

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 80;
},这样可以控制没有个cell的高度

原文地址:https://www.cnblogs.com/fkunlam/p/4334699.html