forkingdog / forkingdog/UITableView-FDTemplateLayoutCell

fd_heightForHeaderFooterViewWithIdentifier

Open
#331 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
9.9k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
初始化方法里面 添加一个label 约束
[self.nickNameLab mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(self.contentView.mas_top);
make.left.mas_equalTo(self.contentView).offset(10);
make.right.mas_equalTo(self.contentView.mas_right).offset(-10);
make.bottom.mas_equalTo(self.contentView.mas_bottom).offset(-10);
}];
赋值的时候 重写 set 方法
但是label 不显示

返回高度 这里
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";

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.