【问题标题】:What is the section number of a supplementary view?补充视图的节号是多少?
【发布时间】: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


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2020-10-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-24
    • 2013-02-20
    • 2015-12-22
    • 2015-07-11
    相关资源
    最近更新 更多