willTransitionToTraitCollection not get called, wh

2019-04-23 14:43发布

I am trying to replace didRotateFromInterfaceOrientation with willTransitionToTraitCollection - in a UIViewController subclass - as doc says, but method is not get called when I am rotating device. Why?

1条回答
The star\"
2楼-- · 2019-04-23 15:29

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.

查看更多
登录 后发表回答