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)];

 

posted on 2016-03-18 10:09  进化的蜗牛  阅读(543)  评论(0编辑  收藏  举报