Support different orientations in controllers embedded in a navigation

According to the documentation (“Interface Behaviors” section), if we need to support different orientations for the controllers in a navigation view, we should use “navigationControllerSupportedInterfaceOrientations” via delegation. Thus, we would be able to return the preferred orientation of each of the controllers by overriding, for example, preferredInterfaceOrientationForPresentation.


My problem is that this method never gets called. Any thoughts?


Context: I have a navigation controller with 2 controllers: A and B. A is portrait and B is landscape. When I push B from A, I need the screen to rotates automatically to landscape.

Powered by WPeMatico

You may also like...

Comments are closed.