0

我使用 tableView(named tableViewTwo) 作为其他 tableView.talbeHeaderView

tableViewTwo 无法滚动

为什么以及我能做什么

UIView *view1 = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 12)];
view1.backgroundColor = GL_TABLEVIEW_BACKGROUD_COLOR;

UIView *tableHeaderView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, CGRectGetMaxY(self.lineGroupView.frame))];
tableHeaderView.backgroundColor = [UIColor whiteColor];

[tableHeaderView addSubview:view1];
[tableHeaderView addSubview:self.candleTopV];
[tableHeaderView addSubview:self.lineGroupView];//it is a tableview
tableView.tableHeaderView = tableHeaderView;

代码:github:https ://github.com/CoderYLZhang/tableHeaderViewTest

4

0 回答 0