title: nt segue identifier not detecting the segue
body: <p>I am trying to switch views using segues (not my first time) , the segue activity is being recognized however no action happens</p>
  
  <p>here is my code:</p>
  
  <pre><code>- (void)viewDidLoad
  {
  ...
   [self performSegueWithIdentifier: @"thesegue" sender: self];
  ...
  }
  
  - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  
      NSString *string=[segue identifier]; //checked if the string is actually equal "thesegue" unsing a breakpoint , and it s actually the case
  
  
      if ([[segue identifier] isEqualToString:@"thesegue"]) { 
  
          int x;
          x=2
  
      }
  }
  </code></pre>
  
  <p>I have inserted breakpoints over all lines and it just jumps to the last closing bracket (i.e. it doesn t recognize the [segue identifier] as equal to "thesegue") .</p>
  
  <p>am I missing something ?</p>
  
  <p>EDIT :</p>
  
  <p>I added x=2 and now it goes into the if statment , the question now is , knowing that it detects the segue , why doesn t it show the new view ?</p>