クラスを使用してカスタムUIViewController
プレゼンテーションを実行するときに、同様の問題が発生しました。UIViewControllerAnimatedTransitioning
私の場合、印刷物は次のようになりました。
-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UIWindow: 0x7f9f83f42db0; frame = (0 0; 375 667); autoresize = W+H; gestureRecognizers = <NSArray: 0x7f9f83f44ed0>; layer = <UIWindowLayer: 0x7f9f83f40ca0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
-[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UITextEffectsWindow: 0x7f9f862553a0; frame = (0 0; 375 667); opaque = NO; autoresize = W+H; layer = <UIWindowLayer: 0x7f9f83f9a1e0>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
エラーの原因は 2 回呼び出したことが原因であることがわかりましたtransitionContext.completeTransition(true)
(1 回はanimateTransition(_:)
で、もう 1 回はCAAnimation
デリゲートanimationDidStop(_:flag:)
メソッドで)。似たようなことをしていないかどうかを確認したい場合があります。