LXReorderableCollectionViewFlowLayout icon indicating copy to clipboard operation
LXReorderableCollectionViewFlowLayout copied to clipboard

UICollectionView scroll no longer works under iOS 9.0b

Open tonyarnold opened this issue 10 years ago • 3 comments

Using LXReorderableCollectionViewFlowLayout with a UICollectionView under iOS 9.0b (currently beta 5) causes scrolling of the collection view to be disabled. I've tried disabling the new iOS 9 rearrangement API like so:

if ([self respondsToSelector:@selector(setInstallsStandardGestureForInteractiveMovement:)]) {
    [self setInstallsStandardGestureForInteractiveMovement:NO];
}

However this has no effect. I'll do some digging over the weekend, but given that I still need to support iOS 8.x clients, I can't afford to lose LXReorderableCollectionViewFlowLayout just yet.

tonyarnold avatar Aug 07 '15 03:08 tonyarnold

@tonyarnold I found out the root cause of this. It seems as though the gesture recognizers are getting added to the same collection view twice. This causes the shouldRecognizeSimultaneouslyWithGestureRecognizer method to fail when comparing the scroll gesture to the duplicated reordering gestures.

My fix was to add a check that only adds the custom gestures once. https://github.com/winkapp/LXReorderableCollectionViewFlowLayout/pull/2/files

adamcumiskey avatar Sep 22 '15 20:09 adamcumiskey

@adamcumiskey Thanks this fix worked for me too.

EldhoseIssac avatar Sep 29 '15 07:09 EldhoseIssac

Thank you @adamcumiskey . Solved the recent problem that I have been having too.

BrettSchumann avatar May 23 '16 13:05 BrettSchumann