I know that there are many questions out there like this, but I have tried their solutions and have not gotten anything to work, so please hear me out.
I have a view controller called
You don't need to iterate anything. Simply reload the table view when the switch changes. Then make sure the implementation of
cellForRowAtIndexPath sets up each cell appropriately for the current state of the switch.