forkingdog / UITableView-FDTemplateLayoutCell

Template auto layout cell for automatically UITableViewCell height calculating
MIT License
9.93k stars 2.01k forks source link

fd_heightForHeaderFooterViewWithIdentifier #331

Open duckls opened 7 years ago

duckls commented 7 years ago

返回高度 这里 return [tableView fd_heightForHeaderFooterViewWithIdentifier:NSStringFromClass([SMCommetPeriodTableView class]) configuration:^(id headerFooterView) {

     SMCommetPeriodTableView * view = (SMCommetPeriodTableView *)headerFooterView;
     view.ff = @"xxxfsdfsdfs";
    }];

返回 secetion View SMCommetPeriodTableView * sectionView = [tableView dequeueReusableHeaderFooterViewWithIdentifier:NSStringFromClass([SMCommetPeriodTableView class])]; // [self configureCell:sectionView atIndexPath:section]; sectionView.ff = @"xxxfsdfsdfs";