TableView分组风格下去掉HeaderView和FooterView的方法

//去掉顶部
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];//CGFLOAT_MIN为无限接近0的浮点数

//去掉底部
self.tableview.tableFooterView =[[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, CGFLOAT_MIN)];
原文地址:https://www.cnblogs.com/tangaofeng/p/5290971.html