UICollectionView selectItemAtIndexPath doesn't call didSelectItemAtIndexPath

后端 未结 4 1941
眼角桃花
眼角桃花 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:51

    Swift 4:

    self.collectionView(daysCollectionView, didSelectItemAt: indexPath)
    

提交回复
热议问题