阿米尔
我试图让 UITbaleView 部分索引与屏幕截图中的相同,该部分索引没有任何背景并且位于 UITableView 单元格上,或者换句话说,右侧没有 UITableView 边距:
但是我的 UITableView 右侧有一些大约 15-20px 的 contentView 边距。
我试过了self.tableView.layoutMargins = .zero
,self.tableView.separatorInset = .zero
但没有帮助。
阿米尔
这实际上很容易通过以下两行完成:
tableView.sectionIndexTrackingBackgroundColor = .clear
tableView.sectionIndexBackgroundColor = .clear
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于
我来说两句