(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 50;
}(UIView )tableView:(UITableView )tableView viewForHeaderInSection:(NSInteger)section{
UIView *cusheadView = [[UIView alloc]initWithFrame:CGRectMake(0,0, SCREEN_WIDTH, 50)];
cusheadView.backgroundColor = [UIColor greenColor];
return cusheadView;
}
设置headView需要两个函数
最新推荐文章于 2024-12-24 17:24:26 发布
