title: ios UINavigationController in UIPopoverController and setPopoverContentSize error
body: <p>I present a UINavigationController in a UIPopoverController. The UINavigationController has 2 UIViewControllers that have the same widths, but different heights. To make sure both UIViewControllers are presented in a proper sized  UIPopoverController i use the following snippet in both UIViewControllers:</p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated
  {
     [self.popoverControllerContainer setPopoverContentSize:self.contentSizeForViewInPopover animated:YES];
  }
  </code></pre>
  
  <p>It works fine for the second UIViewController when i push it and also works fine, when i pop back to the first one, but it when i present the first one for the first time, the height of the UIViewController is smaller and it breaks the layout.</p>
  
  <p>Any idea why this is happening?</p>
  
  <p>Thanks in advance, sincerely,</p>
  
  <p>Zoli</p>