I got a UINavigationBar with an .rightBarButtonItem. If I tap on it, it pushes the new viewController and a .leftBarButtonItem is brought up automatically which takes me to the viewController I was before.
The problem is (when I tap on the .leftBarButtonItem) that the orientation is changed from landscape to portrait mode, though I want the app to stay in landscape mode. How can I fix that?
Thanks a lot!
It’s not clear if you were in portrait mode before you pressed the right button bar item.
It sounds like the first view controller’s shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation isn’t returning YES for portrait orientations.