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

Resize example crashes when double clicking a cell #14

Open
ghost opened this issue Nov 6, 2014 · 1 comment
Open

Resize example crashes when double clicking a cell #14

ghost opened this issue Nov 6, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 6, 2014

Tim, thank you very much for building this. I'm playing around the resize example. When double clicking a cell, the program crashes. The error message is: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'the collection is already in the middle of an interactive transition'. I guess the beginIgnoringInteractionEvents and endIgnoringInteractionEvents calls should be added in collectionView:didSelectItemAtIndexPath:?

@wtmoose
Copy link
Member

wtmoose commented Nov 6, 2014

Yes, you can ignore events during the transition. But you can also cancel it in place and start a new transition. See “Cancelling a Transition” in the readme. In short, the cancelInteractiveTransitionInPlaceWithCompletion API can be called to cancel a transition before starting a new one. The cancel operation doesn’t complete immediately, so you’ve got to start the next transition in the completion block.

I will try to incorporate cancelInteractiveTransitionInPlaceWithCompletion into the sample project when I get some time.

Hope that helps.

Tim

On Nov 6, 2014, at 9:19 AM, dasocorp [email protected] wrote:

Tim, thank you very much for building this. I'm playing around the resize example. When double clicking a cell, the program crashes. The error message is: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'the collection is already in the middle of an interactive transition'. I guess the beginIgnoringInteractionEvents and endIgnoringInteractionEvents calls should be added in collectionView:didSelectItemAtIndexPath:?


Reply to this email directly or view it on GitHub #14.

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

1 participant