title: How can I pass a parameter when initializing a UIViewController?
body: <p>I have two controllers, <code>First- and SecondViewController</code>. I want to share some methods of FirstViewController to use them in my SecondViewController.</p>
  
  <p>This is how I create SecondViewController in FirstViewController:</p>
  
  <pre><code>sms = [[SecondViewController alloc] init];
  UINavigationController *navController = [[UINavigationController alloc]
                                               initWithRootViewController:sms];
  
  [self presentModalViewController:navController animated:YES];
  </code></pre>
  
  <p>I thought of passing the current instance of the FirstViewController to the SecondViewController which extends <code>UIViewController</code>. By default the initWithNibName method of SecondViewController is called.</p>
  
  <p>How do I achieve this in objective-c?</p>