-
Notifications
You must be signed in to change notification settings - Fork 145
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
Adding new cell while scrolling causes table view to jump #26
Comments
Turns out that if you change the
It certainly seems like Calling |
This stops the Hope it helps someone |
@budidino when do you call it? |
call "tableView.setContentOffset(tableView.contentOffset, animated: false)" just before you reloadData() |
https://brigade.engineering/reloading-uitableview-while-animating-scroll-in-ios-11-f89910c958b6 hope this will help somebody! I personally found it very useful while I stuck with the problem how to delete rows while scrolling. |
This actually helped me (see https://forums.developer.apple.com/thread/86703)
|
If you...
... the tableview jumps up before it continues scrolling from a random location. This doesn't happen if the tableview is not scrolling (i.e. it's stationary) when you add cells. I'm assuming this is another UITableView auto-sizing bug that has something to do with scrollView frame and offset calculations when the table view is being scrolled.
Anyone have any ideas for a workaround? I wanted to check before I try to get too clever.
The text was updated successfully, but these errors were encountered: