-
Notifications
You must be signed in to change notification settings - Fork 53
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
iOS 10. Dragging cell disappears #16
Comments
Hi @mrikh |
Hi @KyoheiG3, |
I do not know what is happening. Can you tell me the code that does not work? |
Basically what happens is, the draggingCell is returned nil from inside this method:
I tried implementing the datasource and return the cell but that still doesn't solve the problem. I cannot provide you a sample directly from the code i am using due to well it being an official organisation project and i'll be able to provide a sample after i get the time. This happens only when i click the boundary of the cell and try to drag, never when i long press inside the cell itself |
Thanks for your information. I will try it. |
So i managed to do a hackish fix to the problem, i changed the method to this:
And the problem seems to be resolved |
Awesome! I did not get any problem, but I want to take your code into the method. |
Fixed in #17. Please check it out. |
Whenever i try to drag a cell by pressing on the top edge of the cell. The cell vanishes and isn't visible in the debug view heirarchy either. Here is what happens:
The delegate method for willBeginDragging gets called but didEndDraggingAt isn't called and in this particular case ONLY, the following gets printed into the logs:
"Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates."
Here is a screenshot:
The text was updated successfully, but these errors were encountered: