willAnimateRotationToInterfaceOrientation not called on popViewControllerAnimated

后端 未结 5 1649
遇见更好的自我
遇见更好的自我 2020-12-14 12:08

In the MainViewController I have to adjust some images on orientation change. Easy - just add the code to the willAnimateRotationToInterfaceOrientation: callback

5条回答
  •  没有蜡笔的小新
    2020-12-14 12:54

    Isn’t this the correct behaviour? Because the animation callback should only be called before the animated orientation change. When you pop the topmost view, you see the pop animation and then the already rotated view underneath. There’s no rotation animation and therefore no callback. (But you should certainly receive willRotateToInterfaceOrientation:duration:.)

    P.S. I have a sample Xcode project for interface orientation experiments on GitHub, you might be interested.

提交回复
热议问题