![](/img/trans.png)
[英]How to correct the tableview section header frame according to the orientation / UITableView width
[英]TableView - Header and section are not correct
这是因为默认情况下,表视图clipsToBounds
为false,这意味着它将在表视图范围之外呈现。
一个解法:
tableView.clipsToBounds = true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.