title: shouldSelectViewController not getting called
body: <p>I am trying to call my shouldSelectViewController Delegate function. But it doesnt seem to work.</p>
  <p>I did the following, but still the function doesnt get called</p>
  <h1>.h</h1>
  <pre><code>@interface myAppDelegate : UIResponder &lt;UIApplicationDelegate, UITabBarControllerDelegate&gt;
  
  @property (strong, nonatomic) UIWindow *window;
  
  @end
  </code></pre>
  <h1>.m</h1>
  <pre><code>@implementation TakeFiveCameraAppDelegate
  
  @synthesize window;
  
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {   
      UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
      tabBarController.delegate = (id)self;
      return YES;
  }
  
  - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
      NSLog(@&quot;test&quot;);
      return YES;
  }
  
  @end
  </code></pre>
  <p>I am not sure what am I missing here.</p>