https://github.com/below/tabletest
An attempt to keep firstResponder after reload
https://github.com/below/tabletest
Last synced: 5 months ago
JSON representation
An attempt to keep firstResponder after reload
- Host: GitHub
- URL: https://github.com/below/tabletest
- Owner: below
- License: mit
- Created: 2020-10-06T23:17:51.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-07T11:37:28.000Z (over 5 years ago)
- Last Synced: 2025-03-21T05:43:52.101Z (about 1 year ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TableTest
The goal is to make the `TableViewCell_A` become the first responder, and stay the first responder after a `reloadData`. This does not seem to be working.
Any idea is appreciated. Returning `false` in `canResignFirstResponder` will cause the reload to fail, so that's no option :(
## Solution!
@kernandreas pointed me to `tableView:willDisplay cell:forRowAt indexPath:` and this works perfectly!