title: How to pass variables between view controller using presentViewController in iOS SDK?
body: <p>some days ago I wrote a method to load a view controller using presentViewController:</p>
  
  <pre><code>-(void)passaGC:(NSString *)user
  {
  UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  UIViewController *viewController = (UIViewController *)[storyboard instantiateViewControllerWithIdentifier:@"generaC"];
  [self presentViewController:viewController animated:YES completion:nil];
  
  }
  </code></pre>
  
  <p>But today I need to pass the variable user from this method to the loaded viewController.</p>
  
  <p>How can I modify my method to do this?</p>
  
  <p>I found other question on stack overflow but nothing is really similar to my request</p>