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)];
相關文章
相關標籤/搜索