tableView cell height… how to customize it?

后端 未结 4 805
一向
一向 2020-12-09 10:35

Is it possible to modify height of only one cell in a grouped table view?
I have a table view with 2 sections of 3 and 2 rows... I would change row height of the second

4条回答
  •  余生分开走
    2020-12-09 10:55

    Have a look at

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

    For the indexpath just check for which row and section and adjust the height accordingly

提交回复
热议问题