cell 各自的高度不同的时候

1, cell 根据文字、图片等内容,确定自己的高度。每一个cell有自己的高度。

2,tableView 初始化 现实的时候,不是从第一个cell开始显示,(从第二个?),非非正常显示。

 a:cell 的高度问题

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

    return [_cellHeightDic[@(indexPath.row)] floatValue]+1;
}

返回cell高度的时候,稍大一点试试?

原文地址:https://www.cnblogs.com/code-Officer/p/8033141.html