title: Dismissing UIPopoverController with UINavigationController
body: <p>I'm currently building an iPad app in which I need to implement a pop over view.</p>
  
  <p>I have set up a view controller like I always do:</p>
  
  <ul>
  <li>Create UIViewController wit xib file</li>
  <li>set the xib up and do the necessary programming in it's .h &amp; .m files</li>
  </ul>
  
  <p>now in the view controller I'm loading it from (from a UIBarButtonItem), I have this code:</p>
  
  <pre><code>- (void) action
  {
      ItemContent *newItem = [[ItemContent alloc] initWithNibName:@"ItemContent" bundle:nil];
      UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:newItem];
      _popover = [[UIPopoverController alloc] initWithContentViewController:nav];
      [_popover setPopoverContentSize:CGSizeMake(557, 700) animated:YES];
      _popover.delegate = self;
      [_popover presentPopoverFromBarButtonItem:self.navigationItem.rightBarButtonItem permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
  }
  </code></pre>
  
  <p>This properly displays my view- and UINavigationController in a UIPopOverController. So far so good!</p>
  
  <p>In the newItem view controller, I have made a bar button in my navigation bar that says "Done". When that button is pushed, I want the UIPopOverController to disappear. How do I do this:</p>
  
  <ul>
  <li>Set a method for when te button is pushed. In this method I want to call a function on the view controller that loaded the Popover to dismiss it again.. but how do I do this?</li>
  </ul>
  
  <p>Put things shortly</p>
  
  <p><strong>How do I make my UIPopOverController call a method on the view controller that loaded the UIPopOverController?</strong></p>
  
  <p>I have been searching SO for a while but <strong>none</strong> of the solutions and answers solve my problem. If I missed something please inform me ;)</p>
  
  <p>Thank you so much in advance!</p>