设置heightForHeaderInSection 和 heightForFooterInSection不起作用:
-
(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{return 0.01;
} -
(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{return 0.01;
}
解决办法:
self.tableView.sectionHeaderHeight = 0.01;
self.tableView.sectionFooterHeight = 0.01;
希望这部文章能解决小伙伴的燃眉之急,解决之后记得点赞啊。。。
网友评论