我正在 tvOS 上创建一个 TableView 。 UITableViewWrapperView
是 UITableView
的 subview ,它们之间有前导和尾随填充。我怎样才能删除这些填充?谢谢?
最佳答案
我通过以下设置解决了这个问题:
tableView.contentInsetAdjustmentBehavior = .never
tableView.insetsContentViewsToSafeArea = false
tableView.insetsLayoutMarginsFromSafeArea = false
tableView.preservesSuperviewLayoutMargins = false
请注意,tvOS 指南建议左右间距至少为 90px,顶部和底部间距至少为 60px。
https://developer.apple.com/design/human-interface-guidelines/tvos/visual-design/layout/
关于ios - UITableViewWrapperView 在 tvOS 上具有 super View 的前导和尾随边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51927237/