title: TabBarController setSelectedIndex Function Does Not Work
body: <p>I have the same exact problem that appears in the following link</p>
  
  <p><a href="https://stackoverflow.com/questions/11726620/how-to-segue-from-uibutton-to-a-tab-bar-item">How to segue from UIButton to a Tab Bar Item?</a></p>
  
  <p>and unfortunately I couldn't find any solution till now</p>
  
  <p>Notes :</p>
  
  <p>1) I'm using iOS 5 with a storyboard -if make a difference-</p>
  
  <p>2) I've tried <code>[self.tabBarController.tabBar setSelectedItem:[self.tabBarController.tabBar.items objectAtIndex:3]];</code> and also it does not work</p>
  
  <p>3) I've tried to set IBOutlet for the tab bar and access it directly, but the app was crashed when I called <code>[self.myTabbar setSelectedItem:[self.myTabbar.items objectAtIndex:3]];</code> and got this error : Directly modifying a tab bar managed by a tab bar controller is not allowed </p>
  
  <p><img src="https://i.stack.imgur.com/bnKJc.png" alt="enter image description here"></p>