UICollectionViewCell不能deSelect的问题

iphone - UICollectionView Select and Deselect issue - Stack Overflow

I had a Deselect issue with UICollectionView and I found that I was not allowing multiple selection on collectionView. So when I was testing I tried always on the same cell and if single selection is ON you can't Deselect a cell already selected.

I had to add:

myCollectionView.allowsMultipleSelection = YES;

你可能感兴趣的:(UICollectionViewCell不能deSelect的问题)