willTransitionToTraitCollection not get called, why?

后端 未结 1 827
迷失自我
迷失自我 2021-02-20 14:29

I am trying to replace didRotateFromInterfaceOrientation with willTransitionToTraitCollection - in a UIViewController subclass - as doc says, but metho

1条回答
  •  时光说笑
    2021-02-20 15:01

    If you're testing this on iPad it has regular trait collections for vertical and horizontal class for both orientations, thus it will not call this method when orientation changed.

    0 讨论(0)
提交回复
热议问题