title: Unwind segue doesn't dismiss adaptive popover presentation when not modal
body: <p><strong>Update for iOS 9 beta: Apple may have fixed this for iOS 9.  If you work(ed) around this issue for iOS 8, make sure it also works correctly on iOS 9.</strong></p>
  
  <p>In storyboard, I've created a popover presentation segue to present a navigation and view controller from a button, as well as creating an unwind segue.</p>
  
  <p>In portrait orientation, the modal (fullscreen) presentation is unwound/dismissed, as expected.</p>
  
  <p>In landscape orientation, the unwind segue also gets called, however the popover presentation is <em>not</em> automatically dismissed.</p>
  
  <p><strong>Did I miss hooking something up?  Do I have to dismiss the popover presentation myself?</strong></p>
  
  <pre><code>- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)__unused sender
  {
      if ([[segue identifier] isEqualToString:@"showSelectBookChapter"])
      {
          UINavigationController *navigationController = segue.destinationViewController;
  
          if ([navigationController.topViewController isKindOfClass:[BIBLESelectViewController class]])
          {
              BIBLESelectViewController *selectViewController = (BIBLESelectViewController *)navigationController.topViewController;
              selectViewController.initialBookChapterVerse = self.bookChapterVerse;
          }
      }
  }
  
  - (IBAction)unwindToBIBLEChapterViewController:(UIStoryboardSegue *)segue
  {
      if ([segue.identifier isEqualToString:@"unwindToBIBLEChapterViewController"]) {
          if ([segue.sourceViewController isKindOfClass:[BIBLESelectViewController class]])
          {
              BIBLESelectViewController *sourceViewController = (BIBLESelectViewController *)segue.sourceViewController;
              self.bookChapterVerse = sourceViewController.selectedBookChapterVerse;
              [self.tableView reloadData];
  
          }
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/UFpGR.png" alt="Storyboard scenes and segues">
  <strong>Update:</strong>
  After looking at gabbler's sample code, I've narrowed the problem down to popover dismissing fine in a Single View Application, but not in a Master-Detail Application.</p>
  
  <p><strong>Update 2:</strong>
  Here's what the hierarchy looks like (omitting navigation controllers for simplicity's sake), in answer to the question Luis asked:</p>
  
  <ul>
  <li>Split view controller
  
  <ul>
  <li>Master view controller</li>
  <li>Detail view controller
  
  <ul>
  <li>Chapter view controller (modal page sheet)
  
  <ul>
  <li>Select view controller (the problematic popover that unwinds to chapter view controller, but doesn't dismiss)</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>As I mentioned in the previous update, I created an new master/detail template, and simply presented a popover directly from (a button in) the detail view.  It won't dismiss.</p>