Reputation: 3367
I have a table with section footers and table footer. It receives data from core data. When data change, I have no problem reloading both each single data and section footers, but can't be able to reload the tableFooterView
.
I have something like that:
1
2
3
Section footer: 6
4
5
Section footer: 9
Table footer: 15
The main issue is that I have an animation on -willDisplayCell
and every time I do [self.tableView reloadData]
it fires on every cell and is a mess. I can't find out how to reload just the table footer. Any ideas will be welcome.
Upvotes: 9
Views: 7800
Reputation: 3367
Find out here.
[UIView setAnimationsEnabled:NO];
[tableView beginUpdates];
[tableView endUpdates];
[UIView setAnimationsEnabled:YES];
Upvotes: 6
Reputation: 21536
Have you tried setNeedsLayout
on your tableFooterView, then layoutIfNeeded
on your tableView? I don't know if that will trigger all those cell animations though.
Upvotes: -1