title: didSelectViewController method not being called (with storyboard)
body: <p>I have 2 versions of a tabbed ios5 application, one created using a storyboard and one using xib files.  The storyboard version does not call the <code>UITabBarControllerDelegate</code> method <code>didSelectViewController</code> (the xib version does). Something is (I think) missing from the storyboard, but I don't know what. Another way of framing the question might be — how can I refer to the <code>UITabBarController</code> object instantiated by the storyboard?</p>
  
  <p>Thanks for your help.</p>
  
  <p>EDIT: The tab bar controller delegate is set:</p>
  
  <p>In AppDelegate.h:</p>
  
  <pre><code>@interface MyAppDelegate : UIResponder &lt;UIApplicationDelegate, UITabBarControllerDelegate&gt;
  @property (strong, nonatomic) UITabBarController *tabBarController;
  </code></pre>
  
  <p>In AppDelegate.m:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      self.tabBarController.delegate = self;
      return YES;
  }
  </code></pre>
  
  <p>Then later in AppDelegate.m, the delegate method is:</p>
  
  <pre><code>- (void) tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
  {
      NSLog(@"Got Here");
  }
  </code></pre>
  
  <p>The NSLog output never appears. The problem seems to me to be that I am not correctly referencing the tab bar controller object which has been instantiated by the storyboard.
  How do I do that?</p>