Ich möchte einen View-Controller in einem View-Controller anzeigen. Ich benutze popup segue, um dies zu tun. Die Einstellungen der zweiten View-Controller sind wie folgt und es wird trotzdem im Fullscreen angezeigt.Popup wird als Vollbild angezeigt
func tappedView3() {
// get a reference to the view controller for the popover
let popController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "popoverId")
// set the presentation style
popController.modalPresentationStyle = UIModalPresentationStyle.popover
// set up the popover presentation controller
popController.popoverPresentationController?.permittedArrowDirections = UIPopoverArrowDirection.up
popController.popoverPresentationController?.delegate = self
popController.popoverPresentationController?.sourceView = m_tumgun // button
popController.popoverPresentationController?.sourceRect = m_tumgun.bounds
// present the popover
self.present(popController, animated: true, completion: nil)
}
// UIPopoverPresentationControllerDelegate method
func adaptivePresentationStyleForPresentationController(controller: UIPresentationController) -> UIModalPresentationStyle {
// Force popover style
return UIModalPresentationStyle.none
}
https://Stackoverflow.com/a/39975346/1702413 – TonyMkenu