Unknown error [UIWindow endDisablingInterfaceAutorotation]

后端 未结 5 1072
难免孤独
难免孤独 2020-12-16 05:39

I am receiving this error. I have no clue as to why it would be called, and Google didn\'t really help. Any suggestions?

-[UIWindow endDisablingInterfaceAuto         


        
5条回答
  •  生来不讨喜
    2020-12-16 05:56

    I've had a similar issue when performing a custom UIViewController presentation using a UIViewControllerAnimatedTransitioning class. For me, the printouts looked like the following:

    -[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
    -[UIWindow endDisablingInterfaceAutorotationAnimated:] called on ; layer = > without matching -beginDisablingInterfaceAutorotation. Ignoring.
    -[UIWindow endDisablingInterfaceAutorotationAnimated:] called on > without matching -beginDisablingInterfaceAutorotation. Ignoring.
    

    I found out that the error was caused by calling transitionContext.completeTransition(true) twice (once in animateTransition(_:), and another in a CAAnimation delegate animationDidStop(_:flag:) method). You might want to check that you aren't doing something similar.

提交回复
热议问题