我正在尝试在静态tableView单元格内实现动态collectionView高度。基本上,随着collectionView tableView高度的增加,该高度一直在增加。已经搜索了很多,但仅找到了动态tableView单元格的解决方案。不是静态的。
这是我的代码,用于在表格视图中显示collectionView
for person in players:
for item in shortlist:
if person in item:
new_list = shortlist.remove(item)
their_choice = random.choices(new_list, k=1)
df[person] = their_choice