-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ASTableNode swipe-to-delete cell gesture can leave delete action in a partially visible state #38
Comments
Hmm great catch! I think the thing to do is:
To keep the code cleaner, you could make a macro that contains the top portion and returns the This way we only message UITableView with UIScrollViewDelegate methods that it implements, and we only ever message it for other scroll views – UITableView doesn't listen for self-events on the public protocol, it uses private methods like Would you be willing to implement it? |
I'll certainly give it a shot! Thanks for the quick response :) |
Hi, I use version 2.3.2 and this bug still appears. Any suggestions? |
This was not integrated into the release until 2.3.3. Here is the commit: |
When using UITableView's native swipe to delete table cell gesture, a partial swipe gesture either fully shows or hides the actions below the cell's content view.
The same gesture using ASTableNode/ASTableView leaves the cell's content view in a partially open state.
It appears that this functionality is implemented in UITableView's own (private)
implementation of:
-(void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset;
ASTableView overrides this method, which breaks the show/hide functionality. Removing ASTableView's implementation restores the functionality; obviously this is not the solution.
As an ugly solution I have tried creating a category on UITableView to expose the private method and calling [super scrollViewWillEndDragging] at the top of ASTableView's implementation.
This resolves the show/hide problem, but it doesn't seem ideal and I'm not sure of it's impact on other code.
Sample project:
ASTableSwipe.zip
The text was updated successfully, but these errors were encountered: