【发布时间】:2019-07-30 07:58:58
【问题描述】:
我有一个tableView,其中单元格包含collectionView。现在我想在选择集合视图单元格的任何单元格时获取 tableview 行索引
【问题讨论】:
-
您可以将您的 tableViewCell indexPath.row 设置为 collectionView 的标签,并在 didSelectItem 中获取该标签
标签: swift uitableview uicollectionview