Learn Courses My Dashboard

Pushed Over Tabs

I am making an app and I am using tab navigation controller and the navigation controller, and whenever I push into another view controller through a segue, if I go to a different tab, then back to that one it’s still on the pushed to view controller. Ideas on how to fix this.

Thanks in advance!

Edit: I am also using google AdMob and need it to run viewdidload every time, not just use what was already cached.

Try looking at unwind segues, or on viewWillAppear add code that makes sure you’re on the rootVC, not on any other views that may have been pushed onto the hierarchy

How would I do that?