title: How to unwind through multiple views without displaying intermediate views
body: <p>Assume we have three view controllers: 1, 2, and 3. Using the storyboard, it's pretty simple to unwind from view controller 3 to view controller 1 using an unwind segue. However, when unwinding, view controller 2 is briefly visible before view controller 1 is displayed. Is there any way to get from 3 to 1 without displaying 2 again?</p>
  
  <p><strong>View Controller 1:</strong></p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    NSLog(@"one did appear");
  }
  
  - (IBAction)goToTwo:(id)sender {
    NSLog(@"#### segue to two");
    [self performSegueWithIdentifier:@"TwoSegue" sender:self];
  }
  
  - (IBAction)unwindToOne:(UIStoryboardSegue *)sender {
  }
  </code></pre>
  
  <p><strong>View Controller 2:</strong></p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    NSLog(@"two did appear");
  }
  - (IBAction)goToThree:(id)sender {
    NSLog(@"#### segue to three");
    [self performSegueWithIdentifier:@"ThreeSegue" sender:self];
  }
  </code></pre>
  
  <p><strong>View Controller 3:</strong></p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    NSLog(@"three did appear");
  }
  
  - (IBAction)unwindToOne:(id)sender {
    NSLog(@"#### unwind to one");
    [self performSegueWithIdentifier:@"OneSegue" sender:self];
  }
  </code></pre>
  
  <p><strong>This produces the following log messages:</strong></p>
  
  <ul>
  <li>one did appear</li>
  <li>segue to two</li>
  <li>two did appear</li>
  <li>segue to three</li>
  <li>three did appear</li>
  <li>unwind to one</li>
  <li>two did appear</li>
  <li>one did appear</li>
  </ul>
  
  <p>I've tried using custom segues and disabling animation. Although removing animation makes view controller 2 appear for an even shorter period of time, it still appears. Is there any way to program this behavior?</p>
  
  <p><strong>Screenshot of storyboard:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/UToK0.png" alt="enter image description here"></p>