视频课左右滑动后应该定位
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; }