supportedInterfaceOrientation
should be called only once when viewDidLoad
, but in my case it is called every time the simulator rotates.
I need only two orientations potrait and portrait upside down.
when i rotate to upside down the supported interface orientation is called 4 times and my view becomes upside down. on rotation to landscape it is called only once(but it shouldn't ?).
Any solution ?
PS: I am not using any Navigation controller so setting rotation equal to top view controller wont matter. And in my pList only 2 orientations are supported
Also I have a main View Controller in which I add subviews and I have set the supported interface orientation in my view controller.
Weird thing is 3 view controllers that are before(presented before) the faulty one, they rotate just fine.