title: UIPopoverPresentationController Swift
body: <p>I’m using Storyboards and AutoLayout. There are 2 scenes, 1 is my main view controller with a toolbar and several UIBarButtonItems and 1 is a UIViewController that should simply display a UILabel. When the user taps a toolbar in my main view controller, I present the popover with the following code:</p>
  
  <pre><code>func presentPopover(viewCtrl: UIViewController, item: UIBarButtonItem) {
  viewCtrl.modalPresentationStyle = .Popover
  let popover: UIPopoverPresentationController = viewCtrl.popoverPresentationController!
  popover.permittedArrowDirections = .Any
  popover.barButtonItem = item
  self.presentViewController(viewCtrl, animated: true, completion: nil)
  }
  
  helpView = UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("HelpView“) as? HelpVC
  if helpView != nil {
      presentPopover(helpView!, helpButton)
  }
  </code></pre>
  
  <p>The view gets presented but no subviews (UILabel) are visible. The same strange behaviour happens, when I setup storyboard segues instead of doing the popover presentation from code. However, when I push the very same view on my UINavigationController everything gets displayed fine. Am I missing something?</p>
  
  <p>Best Regards,
  Oliver</p>