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

UITableViewController is jumping after I insert new Cells. #786

Closed
app-arianamini opened this issue Apr 17, 2020 · 0 comments
Closed

UITableViewController is jumping after I insert new Cells. #786

app-arianamini opened this issue Apr 17, 2020 · 0 comments

Comments

@app-arianamini
Copy link

app-arianamini commented Apr 17, 2020

If my child controller is UITableViewController and I fetch new data from backend by (after showing the last cell) and insert the new content (cells) to the tableView (via performBatchUpdates), the contentView is jumping and lagging.

I have already tried to reload contentView contentSize and also used updateContent method after inserting new cells.
And also tried to set contentView.contentSize.height.

Did someone use this Framework with UITableViewController which has dynamic cell count and also dynamic cell height based on constraints?

PS: I get this warning too:

[TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window.

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