title: iOS - Segues and Static Cells
body: <p>I have a group of Static Cells inside a TableView, And I have 3 of these cells (A, B, C) all set up with segues which <code>push</code> the Same ViewController onto the screen; This works fine! </p>
  
  <p>What i want is a way for the View controller to identify which cell was clicked: through which the ViewController could alter what it presents. Specifically, I'd like an int (for say) in my viewController to be set to a particular value according to which cell was clicked </p>
  
  <p>I'm guessing I'm missing something in the 
  <code>- (void) prepareForSegue method</code> ? </p>
  
  <p>Any help is very appreciated</p>
  
  <p>The following Code is in My View Controller </p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
   if ([segue.identifier isEqualToString:@"segue1"]){
      selectedSegue = 1;
   } else {
      selectedSegue = 2;
   }
  
    NSLog(@"Selected Segue: %d", selectedSegue); 
  }
  </code></pre>
  
  <p>selectedSegue always returns 0; </p>
  
  <p>I've set the Segue identifier in my storyboard as well </p>