My UITabBarController's didSelectViewController method is not getting called?

Posted by mobibob on Stack Overflow See other posts from Stack Overflow or by mobibob
Published on 2010-03-27T17:43:48Z Indexed on 2010/03/27 17:53 UTC
Read the original article Hit count: 881

Here is my code stub for my app-delegate.m -- it never gets called.

- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
    NSLog(@"%s", __FUNCTION__);
}

It is defined in this app-delegate.h

@interface OrioleAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;

@end

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch