Get Visible IndexPath UICollectionView in Swift

前端 未结 5 1869
-上瘾入骨i
-上瘾入骨i 2021-02-07 11:02

How to get visible IndexPath while scrolling in collectionView,I referred many link1,link2 But indexPathForCell is not suppor

5条回答
  •  别那么骄傲
    2021-02-07 11:22

    You can use method of UICollectionView as :

    let indexPath = NSIndexPath(item: value1, section: value2)
    

提交回复
热议问题