I used IB to create a segue to present another view a popover.
I added a code in prepareForSegue
to deletage UIPopoverPresentationControllerDelegate to initial controller.
And I set presentation style:
func adaptivePresentationStyleForPresentationController(controller: UIPresentationController,
traitCollection: UITraitCollection) -> UIModalPresentationStyle {
return UIModalPresentationStyle.None
}
This gives me a nice standard popover.
However, I want to make a semi-transparent popover.
I tried couple of things:
To have a view controller on top of another with transparency, you'll need to return UIModalPresentationStyle.OverCurrentContext
.