UITableViewHeaderView 超出边界展示
2020-09-23 本文已影响0人
Junetaurus
- 效果图

- 核心代码
//tableView
[_tableView sendSubviewToBack:_headerView];
//headerView的高度小于需要展示图片的高度
_headerView.height = _headerView.headerHeight - 15;
//UITableViewCell 初始化
self.backgroundColor = [UIColor clearColor];
self.contentView.backgroundColor = [UIColor clearColor];
self.layer.zPosition = 1;