title: How to find Instance of View Controller made by storyboard
body: <p>I am trying to make a tabbed application in Xcode that allows the user to take a photo and edit it on the FirstViewController class and when they are done display it on the SecondViewController.</p>
  
  <p>When I started the project, Xcode automatically made the two viewControllers for me in the storyboard. What I need now is to find the instance of the second viewController that was generated so I can call a method and pass an argument (the UIImage) from the first view controller to the second like this.</p>
  
  <p>FirstViewContoller.m</p>
  
  <pre><code>-(void) passImageToSecondVC (UIImage *) img 
  {
      [&lt;instanceOf_SecondViewController&gt; receiveImg: img]; 
  }
  </code></pre>
  
  <p>SecondViewContoller.m</p>
  
  <pre><code>-(void) receiveImage (UIImage *) img 
  {
      //Code to display the image received 
  }
  </code></pre>
  
  <p>What Im asking is how can I find the name of the instance of the SecondViewController (shown by &lt;> in the example code) generated by Xcode so I can call this method.</p>
  
  <p>Although I'm very close to just doing this programmatically which I find much easier I wanna learn how to do this through the storyboard also I'm very open to hear other solutions to this problem. Thank you!</p>