Does UICollectionView respond when scrolling?

I have a UICollectionView filled with some cells, and I have implemented the method - (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath This works like a charm, but it does not work while it scrolls. This is a problem because scrolling is very sensitive, and so when I want to click a cell and call a method, I end up scrolling without result.

So I was wondering how to counter this and came up with this:

  • Is it possible to simply set up a method for responding while scrolling?
  • If not, can I just make the scrolling ONLY happen if you use, for example, 2 fingers? to separate 2 actions more.

thanks in advance

+5
source share
1 answer

UICollectionViewCell . . , , , . , , Mail.

UICollectionView UITapGestureRecognizer . , .

, UIPanGestureRecognizer 2 , , . , Apple , , .

, : http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/CollectionViewPGforIOS/IncorporatingGestureSupport/IncorporatingGestureSupport.html

, , minimumNumberOfTouches UIPanGestureRecognizer. , , .

+6

All Articles