title: sharing Data between a UIViewController and a UIViewController in UITabBarController xcode
body: <p>I know how to do for share data between 2 views. But if I want to share data using a tabBarController I'm lost.</p>
  
  <p>This is my IBAction to move to my tabBar.</p>
  
  <pre><code>-(IBAction)goToPage2:(id)sender
  {
   tabController.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;
   [self presentModalViewController:tabController animated:YES];
  }
  </code></pre>
  
  <p>i need to share my NSString *dataStr in my IBAction in the first view of my tabBar.</p>
  
  <pre><code>firstView *first = [[firstView alloc] initWithNibName:@"firstView" bundle:nil];
  first.dataStr = name.text;
  [tabController  presentModalViewController:first animated:YES];
  </code></pre>
  
  <p>this code doesn't work.</p>
  
  <p>thx</p>