Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Reloading the table #2

Open
mrjjwright opened this issue Jan 14, 2013 · 1 comment
Open

Reloading the table #2

mrjjwright opened this issue Jan 14, 2013 · 1 comment

Comments

@mrjjwright
Copy link

I love this class, thanks so much! When reloading the table I get:

self.tableView.sections = [NSMutableArray array];
[self.tableView reloadData];

When switching between details views on the iPad this causes the sections & rows to flicker as they are reloaded. Is there another way to clear out the sections and reload without this flicker? I tried disabling animations but I can't figure out why the tableView doesn't draw in one pass.

@mrjjwright
Copy link
Author

I got this to work by doing the following

self.tableView.sections = [NSMutableArray array];
[self.tableView reloadData];

[self.tableView beginUpdates];
[UIView setAnimationsEnabled:NO];
....//Reload sections and rows
[UIView set animationEnabled:YES];
[self.tableView endUpdates];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant