I'd like to build an app that exposes sections in the TableView if the user clicks on a button. (The underlying data may also be sorted and filtered differently) This requires a few extra functions to be overridden and even some of the existing overridden functions require different implementations.
I was thinking that instead of putting if-statements in almost every overridden function it would be cleaner to have two different controller classes (in the IB defined in the "custom class" field) and change them programmatically when the user clicks on the button.
How can I reload my UITableView with a different controller class?
Thanks, Daniel