I started with the default Tabbed Application, added some tabs in the Storyboards with their own viewcontrollers, how can I know when a tab that's already selected, get's touched again?
Tab 1 goes to a webview that has loaded other pages, when the user hits the home tab again, when it's still highlighted, I'd like to reload the initial url where it started.
Thanks for any ideas!
The UITabBarControllerDelegate method [– tabBarController:didSelectViewController:]
gets called each time the tab bar is touched. The documentation for this API states:
In iOS v3.0 and later, this (selected view controller) could be the same view controller that was already selected.
So if you detect your specified tab being selected again, you can have this delegate method reload your initial URL.