How to remove header and footer space from a UITableView?

前端 未结 9 2066
长情又很酷
长情又很酷 2021-02-02 11:02

I have a UITableView in the grouped style, and only one section. However there is some blank space above and below the table view that is shown when the user scrolls too far. Ho

9条回答
  •  悲哀的现实
    2021-02-02 11:38

    you can also use this code for removing space between first cell of uitableview..

     - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
     {
        return 0.002f;// set this...
     }
    

提交回复
热议问题