iPhone UITableView : How to remove the spacing between sections in group style table?

后端 未结 9 948
南方客
南方客 2021-02-05 09:33

I am creating a table view in which there are 10 sections, all having a header view but no cells. So, in short, my table view will display 10 header views only; there will be no

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-05 09:54

    Try with following code

    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
    {
        return 0.25; // as for you need
    }
    

    you can also manage by following delegate method

    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
    

    Is short you can manage it by above two method.

提交回复
热议问题