UICollectionViewCell不能deSelect的问

2015-02-01  本文已影响179人  hoody

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;
上一篇 下一篇

猜你喜欢

热点阅读