一、组头无颜色
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
header.backgroundView.backgroundColor = UIColor.clearColor;
}
二、组头有颜色
SEL selector = NSSelectorFromString(@"_setHeaderAndFooterViewsFloat:");
((void (*) (id, SEL, BOOL))[self.tableView methodForSelector:selector]) (self.tableView, selector, NO);