Prevent header update after reloadData call?

I have a UITableView with a custom header that supports some state. When I call reloadData to modify / update data in a UITableView, the header also reloads. Is there a way to prevent this behavior in order to keep state in the table header?

+3
source share
1 answer

Do not put these states in the header. You mix the “view” with the “model” in the MVC design.

Anyway, you can reload certain lines with -reloadRowsAtIndexPaths:withRowAnimation:.

+3
source

Source: https://habr.com/ru/post/1744825/


All Articles