Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UICollectionView scroll no longer works under iOS 9.0b #92

Open
tonyarnold opened this issue Aug 7, 2015 · 3 comments
Open

UICollectionView scroll no longer works under iOS 9.0b #92

tonyarnold opened this issue Aug 7, 2015 · 3 comments

Comments

@tonyarnold
Copy link
Contributor

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 added a commit to tonyarnold/LXReorderableCollectionViewFlowLayout that referenced this issue Aug 7, 2015
@adamcumiskey
Copy link

@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

@EldhoseIssac
Copy link

@adamcumiskey Thanks this fix worked for me too.

@BrettSchumann
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants