Two-stage rotation animation is deprecated. This application should use the smoother single-stage animation

前端 未结 5 803
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-01 23:15

I am building a ipad application. when the applications starts i show it in landscape Right mode. But as soon as the application starts I get this message

T         


        
5条回答
  •  执念已碎
    2021-01-02 00:06

    The problem is that your app is using one of these methods, which were deprecated in iOS 5.0:

    didAnimateFirstHalfOfRotationToInterfaceOrientation:
    willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
    willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
    

    You need to modify your view controllers to override willAnimateRotationToInterfaceOrientation:duration: instead, and to not override any of the "HalfOfRotation" methods.

提交回复
热议问题