Here is my code stub for my app-delegate.m -- it never gets called.
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(
If your ViewController is a UITabBarController, you need to set self as it's delegate because you can't change the delegate of the UITabBar directly.
UITabBarController
UITabBar
For example, in the ViewDidLoad of your UITabBarController :
- (void)viewDidLoad { [super viewDidLoad]; self.delegate = self; }