iphone - Force UIViewController to only show in landscape mode -


My app runs in portrait mode, but I want to show a screen landscape mode because it is a chart I have my uiviewcontroller What do I add to apply it only in Landscape mode?

I'm sorry, but the answer will be very short: If you are using Uaiavigeshn controller, So you can not do this The answer @ jer gives why is wrong. Apple's documentation says:

When all the children of your UITabBarController or UINavigationController controller do not agree on setting a general orientation.

Recently I got an answer to this question in my app and a reward rejected in the process. Read on:

Do you have the only solution, he throw the Uainaving controller and rewrite with your own things to do.

Comments