I'm currently trying to present a view controller using a UIPresentationController . My problem is when my user delegate transfers the call
func presentationControllerForPresentedViewController(presented: UIViewController, presentingViewController presenting: UIViewController!, sourceViewController source: UIViewController) -> UIPresentationController?
My nil view manager raises its exception. I present it from a view controller built into the navigation controller that is built into the tab bar controller. I tried to introduce it from these controllers on the same issue. It also works correctly when there is no special modal presentation, but my goal is to customize it. I call it when the button is selected and the code is presented below. mapTransitionDelegate is my custom delegate, which I save in the class property. In addition, EnlargedMapViewController() initialized to have a special modal presentation so that my transition delegate is called.
var enlargedMapController = EnlargedMapViewController(); enlargedMapController.transitioningDelegate = mapTransitionDelegate; presentViewController(enlargedMapController, animated: true, completion: nil);
I would like to know why this problem arises for future knowledge. At the moment, my subclass of UIPresentationController is not even initialized due to this exception.
source share