title: ViewDidAppear not called in main view when modal view is presented over a popover
body: <p>I'm trying to use a popover as an intermediary menu between my main view and a modal view controller.  I can successfully present the Modal view controller from the popover by using the following code:</p>
  
  <pre><code>UIStoryboard *storyboardiPad = [UIStoryboard storyboardWithName:@"MainStoryboard_iPad" bundle:nil];
  cbwEditControlPanel *editCP = [storyboardiPad instantiateViewControllerWithIdentifier:@"EditCP"];
  
  UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:editCP];
  [nav setToolbarHidden:NO];
  [nav setModalPresentationStyle:UIModalPresentationFullScreen];
  [nav setModalTransitionStyle:UIModalTransitionStyleCoverVertical];
  [self presentViewController:nav animated:YES completion:nil];
  self.modalInPopover = NO;
  </code></pre>
  
  <p>The problem I'm running into is that when the EditCP modal view controller is dismissed, the main view controller never updates.  I have a pagecontroller on the main view that should be updated to reflect the number of pages as set in the EditCP modal view controller, but for some reason the modal view controller being called from the popover prevents the main view controller from updating the pagecontroller.  I've even tried calling the main view's "View Will Appear" method from the popover or modal view when they are dismissed, but <em>even if the 'viewWillAppear' method is called the pageController will not update!</em></p>
  
  <p>Any ideas what is preventing the pageController from updating?  I even passed a reference to the pagecontroller to the modal view and tried to update it there, but it seems that from the time the popover is presented until it is dismissed, I cannot update the number of pages on the PageController.</p>
  
  <p>Thank you!</p>