SectionIndexTitles for a UICollectionView

后端 未结 4 2137
醉话见心
醉话见心 2020-12-08 01:35

So I implemented a proper TableView with a search functionality and sectionIndexTitles. Now, I am trying to implement a UICollectionView

4条回答
  •  庸人自扰
    2020-12-08 01:54

    You can now simply use (as of iOS 10.3)

    optional func indexTitles(for collectionView: UICollectionView) -> [String]?

    Which expects an array like: ['A', 'B' ,'C'] as its return value.

提交回复
热议问题