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

The table view cell not get deselect after touch #27

Closed
MainasuK opened this issue Oct 12, 2021 · 1 comment
Closed

The table view cell not get deselect after touch #27

MainasuK opened this issue Oct 12, 2021 · 1 comment

Comments

@MainasuK
Copy link

Hi~

I'm trying to figure out what's make the table view cell still selected when touch end.
It looks like some hack prevents tableView deselect the cell.

I record a video to reproduce this.

  1. Tap quickly or hold then release the finger on the cell.
  2. The cell gets highlighted

Expect:
The cell should go back to the normal style after touching.

RPReplay_Final1634040408.-.02.mp4
@MainasuK
Copy link
Author

MainasuK commented Oct 13, 2021

Sorry.

I think the demo app did not fit my case. I push to another view controller when tableView delegate tableView(_:didSelectRowAt:) called. And it's maybe another issue from the paging framework I use.


Update:

The Pageboy framework nest in the bottomVC somehow makes the UITableViewCell highlighted during swipe (and cancel swipe in the middle of navigation to next tab) . But call indexPathForSelectedRow on tableView just return nil. Finally, I setHighlighted on all visible cells when paging begins to scroll to fix this issue.

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