07-21-2023, 10:30 PM
You are looking for this solution :
**StaticDataTableViewController 2.0**
which can show/hide/reload any static cell(s) with or without animation!
[self cell:self.outletToMyStaticCell1 setHidden:hide];
[self cell:self.outletToMyStaticCell2 setHidden:hide];
[self reloadDataAnimated:YES];
Note to always use only (reloadDataAnimated:YES/NO)
(dont call [self.tableView reloadData] directly)
**This doesn't use the hacky solution with setting height to 0 and allows you to animate the change and hide whole sections**
**StaticDataTableViewController 2.0**
[To see links please register here]
which can show/hide/reload any static cell(s) with or without animation!
[self cell:self.outletToMyStaticCell1 setHidden:hide];
[self cell:self.outletToMyStaticCell2 setHidden:hide];
[self reloadDataAnimated:YES];
Note to always use only (reloadDataAnimated:YES/NO)
(dont call [self.tableView reloadData] directly)
**This doesn't use the hacky solution with setting height to 0 and allows you to animate the change and hide whole sections**