IOS不允許Header和Footer為0
但有時為方便寫代碼還是要有設置為0的時候,那么這時可以設置為0.0001,這樣也就顯示不出來了
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ if(section == 1 ) return 0.000001f; else return 44.0f; // put 22 in case of plain one.. }