Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

willTransitionToTraitCollection not get called, why?

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?

like image 305
János Avatar asked Sep 02 '14 23:09

János


1 Answers

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.

like image 81
Aditya Wirayudha Avatar answered Oct 15 '22 21:10

Aditya Wirayudha