Workaround for custom UIViewController animations in landscape?

后端 未结 5 913
逝去的感伤
逝去的感伤 2021-01-31 05:34

I have a custom animated UIViewController transition, and it seems that there is a bug in iOS that screws up the layout in landscape orientation. In the main animation method, i

5条回答
  •  死守一世寂寞
    2021-01-31 05:53

    One solution is to have a very short (or zero-second) transition, then once the transition is finished and your view controller is presented, it will have the correct transforms applied to it. You then perform your animations from within the presented view controller itself.

提交回复
热议问题