UICollectionView selectItemAtIndexPath doesn't call didSelectItemAtIndexPath

后端 未结 4 1943
眼角桃花
眼角桃花 2021-02-07 12:22

I have a collection view. I would like to programmatically select a cell. This is the code I use

[_collectionView selectItemAtIndexPath:[NSIndexPath indexPathFor         


        
4条回答
  •  盖世英雄少女心
    2021-02-07 12:47

    Osmenda's answer in Swift with my custom collection view:

    self.collectionView(calendarCV, didSelectItemAtIndexPath: indexPath)
    

提交回复
热议问题