title: How do I display an alert over a PageViewController after a popover dismissal?
body: <p>I have a a VC structure like this</p>
  <p>UIPageViewController -&gt; detailViewController -&gt; popoverviewcontroller</p>
  <p>The popoverviewcontroller is dismissed using an unwind segue, bringing us back to the detailviewcontroller</p>
  <p>Now, after the popover is done being dismissed, I would like to refresh the pages on the pagecontroller, since the action the user takes has changed the data.</p>
  <p>I would also like to display an alert notifying the user about whether they were successful.</p>
  <p>So I tried putting this code in the pageViewcontroller</p>
  <pre><code>- (IBAction) unwindFromPopup:(UIStoryboardSegue*)unwindSegue{
      [self refreshPages];
      UIAlertController * alertController = [UIAlertController alertControllerWithTitle:@&quot;alert&quot; message:@&quot;this should appear&quot; preferredStyle:UIAlertControllerStyleAlert];
      [self presentViewController:alertController animated:YES completion:nil];
  }
  </code></pre>
  <p>I tried moving the above code to the detail view controller instead, but I am getting no result from this. No error or anything, just a complete lack of alert. I put a breakpoint in the segue, and the code gets called. But no alert.</p>
  <p>I thought of putting the code in one of the respective viewDidAppear methods, but for some reason viewDidAppear does not get called for either the pageviewcontroller or the detailview controller after I dismiss the popup.</p>
  <p>So at this point I have no idea how to make this alert appear.</p>
  <p>Do I need to post my full code, or is my problem apparent with the details I've included?</p>