title: performSegueWithIdentifier doesn't work
body: <p>My main view controller is in a navigation controller and it conforms to <code>EditViewControllerDelegate</code> protocol. It is the delegate of my two view controllers that I need to present modally.</p>
  
  <pre><code>@interface EditViewController : UIViewController
  @property (nonatomic) id &lt;EditViewControllerDelegate&gt; delegate;
  @end
  
  @interface EditSomethingViewController : EditViewController
  @end
  
  @interface EditSomethingElseViewController : EditViewController
  @end
  </code></pre>
  
  <p>In a  <code>editViewController:(EditViewController *)evc didFinishEditing:(Something *) something</code>  method, I first get the data I need then I dismiss the <code>evc</code> and call</p>
  
  <pre><code>[self performSegueWithIdentifier:@"My Segue" sender:self];
  </code></pre>
  
  <p>"My Segue" is defined in Xcode and the identifier is the same both in code and in Xcode (I tried to change it just to see if it gets called and it throws an exception)</p>
  
  <p>When I change "My Seque"'s type to push, it worked.
  But with modal it doesn't do anything after I'm back to the main view controller</p>
  
  <p>What am I missing?</p>
  
  <p>EDITED:</p>
  
  <p>I accidentally found out a warning in my storyboard! (it's weird because it's not a warning in the project "visible from everywhere")
  In the connections' inspector under "Referencing Storyboard Segues" there's a warning for my modal segue. it says :</p>
  
  <pre><code>(null) is not a valid containment controller key path
  </code></pre>
  
  <p>I checked other modal segues and there is the same warning, but I didn't need to trigger them by code so didn't have problems before.</p>
  
  <p>EDITED 2:</p>
  
  <pre><code>-(void)editViewController:(EditViewController *) evc
  didFinishEditing:(Something *) something
  {
      self.something = something;
      [self dismissModalViewControllerAnimated:YES];
      For ( OtherThing * otherThing in self.something.otherthingsArray)
      {
          NSLog(@"%@", otherThing);
      }
      [self performSegueWithIdentifier:@"My Segue" sender:self];
  }
  </code></pre>