0

と呼ばれるではなく、取得しない私はUIModalPresentationStyle.customを使用しています私のUIViewControllerTransitioningDelegateなぜこのメソッドが呼び出されるんでカスタムUIModalPresentationStyle.custom:なぜpresentationController(forPresented animationController(forPresented

:。

func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? 

しかし、どれもこれらの関数と呼ばれます:

func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? 

func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? 

func interactionControllerForPresentation(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? 

func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? 

答えて

0

をあなたはにanimatedブールを設定していることを確認します

present(viewController, animated: true, completion: nil) 

dismiss(animated: true, completion: nil) 
を呼び出します
関連する問題