In VC-A I have a IBAction called "unwindToMain". A second VC, VC-B, is loaded and then a third VC. In VC-C I call that unwind function from a button press.
The problem is that VC-B appears to be loaded during the unwind. I added some print() statements to help debug and I can see VC-B code, including the tableview functions, getting run after the button click, before I arrive at VC-A.
Why is this happening and how do I stop it? Thanks in advance!