I need to know evertime a certain tab on my tabbar is selected to be able to set a certain BOOL. viewDidLoad does net get called every time/when I click on the tab – is there an alternative to that?
I need to know this in that tab’s-view’s viewcontroller.
You probably want one of these:
The UITabBarDelegate method
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)itemThe UITabBarControllerDelegate method
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController