UITableView space between row and sections

后端 未结 5 1353
野的像风
野的像风 2021-01-13 11:39

I want to make a UITableView as close to the iOS settings view as possible:

How do i create the space between different sections? What\'s the best way?

5条回答
  •  庸人自扰
    2021-01-13 12:36

    try these..

    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
    {
      return 30; //according to your need..
    }
    

    i hope it helps..

提交回复
热议问题