gpt4 book ai didi

swift - 单击 tvos 应用程序中 TableView 单元格内的 Collection View 单元格

转载 作者:行者123 更新时间:2023-11-30 11:16:17 35 4
gpt4 key购买 nike

我在 tvos 应用程序的表格 View 单元格内有一个 Collection View 单元格。无法获得水平滚动并单击我的 Collection View 单元格。如何在表格 View 单元格内的 Collection View 单元格中单击?我想将 TableView 垂直滚 Action 为父 View ,将水平滚动的 Collection View 作为 subview 。

最佳答案

在您的 UITableViewDelegate 中实现 tableView(_:canFocusRowAt:) :

func tableView(_ tableView: UITableView, canFocusRowAt indexPath: IndexPath) -> Bool {
return false
}

关于swift - 单击 tvos 应用程序中 TableView 单元格内的 Collection View 单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51711690/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com