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

UITableView scroll position reset after interactive pop #28

Open
dennishylau opened this issue Nov 26, 2018 · 3 comments
Open

UITableView scroll position reset after interactive pop #28

dennishylau opened this issue Nov 26, 2018 · 3 comments

Comments

@dennishylau
Copy link

FIrst thing first, thank you for your work!

In the gif below, notice how the "Police Officer" row appears after popping the details page, even though I have already scrolled pass it beforehand. The UITableView always goes back to the same scroll position, no matter where I am before a segue.

@romaHerman
Copy link

romaHerman commented Dec 17, 2018

@dennishylau , do you have reload data call in your table view inside viewWillAppear or viewDidAppear methods ?

if yes you can use native API isMovingToParentViewController == false => reloadData
or you can use your own custom flag to distinguish between this

@dennishylau
Copy link
Author

@romaHerman No, reloadData was not called. Also the weird thing is, even if I store the contentOffset of the table view and set it back in viewWillAppear, it still won't work.

@ccrama
Copy link

ccrama commented Jan 30, 2019

I am seeing this behavior as well

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

3 participants