Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh UITableView tableFooterView without reloading whole table data

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.

like image 739
jherran Avatar asked Oct 06 '14 09:10

jherran


1 Answers

Find out here.

[UIView setAnimationsEnabled:NO];
[tableView beginUpdates];
[tableView endUpdates];
[UIView setAnimationsEnabled:YES];
like image 159
jherran Avatar answered Oct 21 '22 00:10

jherran