Deleting cells from UICollectionView via NSNotification

后端 未结 3 1511
栀梦
栀梦 2020-12-31 17:11

I have a simple UICollectionView based app - one UICollectionView and a NSMutableArray based data model for simplicity.

I can delete cells with no problem via the di

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-31 17:57

    You could pass in the NSIndexPath of the selected cell in the userInfo dictionary of your notification. You could set that in the tag of your custom cell when it is created.

提交回复
热议问题