Animation of CGAffineTransform in iOS8 looks different than in iOS7

前端 未结 6 1887
南方客
南方客 2021-02-02 11:59

I\'m trying to find a reason why animation of UIView transform property looks different in iOS 8 than iOS 6/7.

For a simple example, prior to iOS 8:

6条回答
  •  渐次进展
    2021-02-02 12:30

    I agree with Pbk that it has to do with size classes in io8. uiviewcontrollers need to be resized with uitraitcollections depending on the device orientation. Otherwise, you get a uiviewcontroller in portrait mode, while the phone is in landscape mode, when you try to rotate it. So the correct steps are to rotate AND override uitraitcollections

提交回复
热议问题