title: Dismissviewcontroller and perform segue
body: <p>I need to go to another viewcontroller with <code>performSegueWithIdentifier</code> but I also need to remove the viewcontroller I'm currently in. How can I do this, I have tried this but it doesn't work:</p>
  
  <pre><code>[self performSegueWithIdentifier:@"next" sender:self];
  [self dismissViewControllerAnimated:NO completion:nil];
  
  //tried the other way, but it doesn't work either
  [self dismissViewControllerAnimated:NO completion:nil];
  [self performSegueWithIdentifier:@"next" sender:self];
  </code></pre>
  
  <p>It looks like there isn't any easy way to do this?
  I have 4 viewcontrollers, they are connected like this, and I want to go from gameover to highscore.</p>
  
  <pre><code>menu--&gt;game-----&gt;gameover
  menu--&gt;highscore
  </code></pre>