ios - UITableViewWrapperView 在 tvOS 上具有 super View 的前导和尾随边距

标签 ios swift tvos

我正在 tvOS 上创建一个 TableView 。 UITableViewWrapperViewUITableView 的 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/

相关文章:

ios - 从 ionic 命令构建 ios 失败

具有多种功能的 Swift 4 NSExpression

swift - tvOS:间歇性调用 pressesEnded

uibutton - 以编程方式向 UIButton 添加目标操作

ios - 使用 AVPlayerViewController 时如何检测用户对字幕的选择

iOS Core Bluetooth - 无法通过扫描发现真实设备

ios - 合并两个 sqlite3 查询

android - Flutter - 当键盘出现在android上时文本字段不显示

ios - SKScene.anchorPoint 如何影响 physicsBody?

ios - 终止应用程序 : Could not load NIB in bundle: 'NSBundle ...' with name '7bK-jq-Zjz-view-r7i-6Z-zg0'