UIPopoverPresentationController displaying popover as full screen
问题 I am trying to use UIPopoverPresentationController to display a popover that doesn't take up the whole screen. I've followed many different tutorials with no luck. Here is my code. It correctly instantiates the ViewController , but it takes up the entire screen instead of just a smaller screen as I defined in preferredContentSize . func showPopover() { let vc = self.storyboard?.instantiateViewControllerWithIdentifier("PopupTimePickerViewController") as PopupTimePickerViewController vc