title: Implementing shouldSelectViewController method in UiTabBarViewController
body: <p>I'm using a storyboard and have <code>UITabBarViewController</code> as my navigation controller. What I need is to use <code>shouldSelectViewController</code> method which is a part of a delegate UITabBarControllerDelegate.</p>
  
  <p>I'm not sure how to override this method in my <code>CustomUiTabBarController</code>. </p>
  
  <p>I was trying to define interface like this:</p>
  
  <pre><code>@interface CustomTabBarController : UITabBarController &lt;UITabBarControllerDelegate&gt;
  </code></pre>
  
  <p>Then I implemented this:</p>
  
  <pre><code>-(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController {
  //nothing yet
  }
  </code></pre>
  
  <p>However shouldSelectViewController is not executed when I click on tabs. I also can't set CustomTabBarController class as a delegate of a TabBar in my storyboard because it causes exception.</p>
  
  <p>I clearly leak some iOS undesrtanding here. Please assist.</p>