heightForFooterInSection
以及heightForHeaderInSection
方法中,如果想設置高度為0,不能直接返回0
,可以設置返回0.01
例如
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
return 0.01;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 0.01;
}