title: iOS 5 Trying to pushViewController from modal view
body: <p>I have an iOS 5 Tabbed Application, using Storyboards.</p>
  
  <p>My Tabbar Controller points to three Navigation Controllers.</p>
  
  <p>From one of them, the flow looks like this:</p>
  
  <p>Start view --> Photo view (modal) --> Catalog view</p>
  
  <p>On the photo screen, I have a button with the following code:</p>
  
  <pre><code>- (IBAction)acceptPhotoButtonPressed:(id)sender {
      UIViewController *catalogView = [self.storyboard instantiateViewControllerWithIdentifier:@"CatalogView"];
      [self.navigationController pushViewController:catalogView animated:YES];
  }
  </code></pre>
  
  <p>I've tried fooling around with <code>presentingViewController</code>, <code>parentViewController</code> - even type casted those to a <code>UINavigationController</code>. That causes it to crash, with the following error message:</p>
  
  <pre><code>2012-04-06 00:32:45.808 myapp[19345:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController pushViewController:animated:]: unrecognized selector sent to instance 0x18d0d0'
  </code></pre>
  
  <p>So that tells me that I haven't got hold of a <code>UINavigationController</code>, but a <code>UITabBarController</code>.</p>
  
  <p>Is there any way around this?</p>