gpt4 book ai didi

swift - 补充 View 的节号是多少?

转载 作者:行者123 更新时间:2023-11-28 05:38:21 25 4
gpt4 key购买 nike

我正在使用 UICollectionViewController。在某些时候,我需要对可见页脚进行一些配置,对于每一个页脚,我都需要知道它的当前节号。当前,因为部分可能会被替换,并且可重用 View 的部分可能会更改。

self.collectionView.visibleSupplementaryViews(ofKind: UICollectionView.elementKindSectionFooter)
.filter { $0.reuseIdentifier == reuseIdentifierFooter}
.forEach {
// Here I need to know the section number of each view
}

最佳答案

关于swift - 补充 View 的节号是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57793835/

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