title: iOS storyboard passing data navigationViewController
body: <p>I have problem with proper passing data between view's but not in standard way.</p>
  
  <p><strong><em>Picture describing my problem:</em></strong></p>
  
  <p><img src="https://i.stack.imgur.com/TKNam.png" alt="http://i.stack.imgur.com/0jHYC.png"></p>
  
  <p>I <strong>performSegueWithIdentifier</strong> with one of two segue identifiers and then in I want to pass data to ViewController called "Firmy" or "Oddzialy". </p>
  
  <p>Passing data code:</p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
    if ([[segue identifier] isEqualToString:@"sLogowanieFirmy"]) {
        FirmyVC *firmyVC = [segue destinationViewController];
        firmyVC.tabFirmy = self.tabFirmy;
    }
    if ([[segue identifier] isEqualToString:@"sLogowanieOddzialy"]) {
        OddzialyVC *oddzialyVC = [segue destinationViewController];
        oddzialyVC.wybranaFirma = [self.tabFirmy objectAtIndex:0];
    }
  }
  </code></pre>
  
  <p>Problem is with method <strong>[segue destinationViewController]</strong> becouse destinationViewController for segue is NavigationViewController. </p>
  
  <p>So what is proper way to pass data and have independent Navigation Controllers?</p>