title: Passing data with segue
body: <p>Im trying to pass data from a textfield in ViewController2 to a label in ViewController. It do not seem to work and i get no errors. What am i missing in my Segue?</p>
  
  <p>ViewController2.h</p>
  
  <pre><code>@interface ViewController2 : UIViewController {
  
  IBOutlet UITextField *HomeTeam;
  
  }
  </code></pre>
  
  <p>ViewController2.m</p>
  
  <pre><code>-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
      [segue.identifier isEqualToString:@"HomeTeam"];
          NSString *homeTeamText = HomeTeam.text; 
          ViewController *vc = [segue destinationViewController];
          vc.HomeTeamString = homeTeamText;
  }
  </code></pre>
  
  <p>ViewController.h</p>
  
  <pre><code>@property (weak, nonatomic) IBOutlet UILabel *HomeTeamLabel;
  @property (weak, nonatomic) NSString *HomeTeamString;
  </code></pre>
  
  <p>ViewController.m</p>
  
  <pre><code>@synthesize HomeTeamString, HomeTeamLabel;
  </code></pre>