iOS 15 中表格视图标题上方的额外填充 [英] Extra padding above table view headers in iOS 15
本文介绍了iOS 15 中表格视图标题上方的额外填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改 iOS 15 中开始出现的 UITableView
部分标题上方的额外填充?
How to change the extra padding above UITableView
section headers that has started to appear in iOS 15?
推荐答案
从 iOS 15 开始,UITableView
包含一个名为 sectionHeaderTopPadding
指定每个部分标题上方的填充量.
Since iOS 15, UITableView
contains a new property called sectionHeaderTopPadding
which specifies the amount of padding above each section header.
tableView.sectionHeaderTopPadding = 0.0
这篇关于iOS 15 中表格视图标题上方的额外填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文