【发布时间】:2019-09-04 18:16:13
【问题描述】:
我正在与UICollectionViewController 合作。在某些时候需要对可见页脚进行一些配置,并且对于其中的每一个,我都需要知道它的当前节号。最新,因为部分可能会被替换,并且可重用视图的部分可能会改变。
self.collectionView.visibleSupplementaryViews(ofKind: UICollectionView.elementKindSectionFooter)
.filter { $0.reuseIdentifier == reuseIdentifierFooter}
.forEach {
// Here I need to know the section number of each view
}
【问题讨论】:
标签: swift uicollectionview uicollectionreusableview