TVOS表查看布局问题

发布于 2025-01-23 19:32:00 字数 607 浏览 5 评论 0原文

我正在使用TVOS应用程序中的TableViews。屏幕分为3个表视图。左和右表视图缩进了标头,中间没有任何问题。我已经尝试了以下内容来删除此缩进,但根本无法使用。任何帮助将不胜感激。

cell.focusStyle = .custom
cell.selectionStyle = .none

table.dataSource = self
table.delegate = self
table.backgroundColor = UIColor.white
table.insetsContentViewsToSafeArea = false
table.insetsLayoutMarginsFromSafeArea = false

image

我相信这是由安全区域引起的,但是当取消检查时,它也无法正常工作。

安全区域图像

I am using tableviews in my tvOS application. The screen is divided into 3 table views. The left and right table view is indenting the header, the middle has no issues at all. I have tried the following to remove this indent but it is not working at all. Any help would be appreciated.

cell.focusStyle = .custom
cell.selectionStyle = .none

table.dataSource = self
table.delegate = self
table.backgroundColor = UIColor.white
table.insetsContentViewsToSafeArea = false
table.insetsLayoutMarginsFromSafeArea = false

image

I believe this is caused by the Safe Area, but when unchecking this it does not work also

Safe Area Image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文