I have a UICollectionView
that horizontally scrolls to show one UICollectionViewCell
at a time. Each UICollectionViewCell
the has a ve
I found that the most effective approach is to steal the panGestureRecognizer
, exposed by UIScrollView
and disable userInteraction
on the scrollView
. That way, you get the behavior of the scrollview but maintain the interaction on the collection view. On your UICollectionViewCell
subclass:
self.scrollView.userInteractionEnabled = NO;
[self.contentView addGestureRecognizer:self.scrollView.panGestureRecognizer];
This is a method Apple recommends and demonstrates in WWDC 2014 session 235 (Advanced Scrollviews and Touch Handling Techniques)