美文网首页
UICollectionViewCell不能deSelect的问

UICollectionViewCell不能deSelect的问

作者: hoody | 来源:发表于2015-02-01 12:44 被阅读179次

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的问

      本文链接:https://www.haomeiwen.com/subject/yanlxttx.html