如图用section分隔开后每个section最后的cell的分割线不见了。
分隔的方法是:单独把一个section作为分隔块使用,即:section 0,有cell 2;section 1,没有cell,headView高12;section 2,有cell 2……以此类推。
要解决这个问题,想要分割线显示的话看来只能自定义,加到Layer上面去。
比如说在分隔section的上下加上分割线:
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
if(section % 2 - 1 == 0) {
return 12;
}else