![](https://iknow-base.cdn.bcebos.com/lxb/notice.png)
我设置了tableHeaderView了以后为什么会把cell的内容给覆盖了
2016-12-28 · 做真实的自己 用良心做教育
千锋教育专注HTML5大前端、JavaEE、Python、人工智能、UI&UE、云计算、全栈软件测试、大数据、物联网+嵌入式、Unity游戏开发、网络安全、互联网营销、Go语言等培训教育。
向TA提问
关注
![](https://wyw-base.cdn.bcebos.com/pc-content/follow.gif)
展开全部
1-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection: (NSInteger)section
{}
调下这个代理
2headview没有写在
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
3调节透视图的大小
4把视图的背景色给成透明的就可以了,headerView.backgroundColor=[UIColor clearColor];搞定
{}
调下这个代理
2headview没有写在
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
3调节透视图的大小
4把视图的背景色给成透明的就可以了,headerView.backgroundColor=[UIColor clearColor];搞定
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询