视频课左右滑动后应该定位

tableView headerView复用问题

应该跟cell一样,先注册,再dequeue

在 viewForHeaderInSection:(NSInteger)section {

这个方法里面dequeue  :

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    
    GRHeaderView *headerView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:@"GRHeaderView"];
    headerView.delegate = self;
    [headerView configArray:self.units];
    return headerView;
}
原文地址:https://www.cnblogs.com/tufei7/p/10208645.html