9

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.

Unihedron
  • 10,601
  • 13
  • 59
  • 69
jherran
  • 3,241
  • 8
  • 35
  • 50

2 Answers2

6

Find out here.

[UIView setAnimationsEnabled:NO];
[tableView beginUpdates];
[tableView endUpdates];
[UIView setAnimationsEnabled:YES];
Community
  • 1
  • 1
jherran
  • 3,241
  • 8
  • 35
  • 50
-1

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.

pbasdf
  • 20,976
  • 3
  • 38
  • 71