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