I want all view controllers to support only portrait mode, except that one view controller allows you to call it "LandscapeSupportViewController", which should also support landscape mode.
The problem is that I am in LandscapeSupportViewController in landscape mode, and then I click on a new view controller that only supports portrait mode, the pushed controller will also be in landscape mode! How can I make him be a portrait?
I saw several applications that do this, for example, the iPhone application for iPhone, the Messages tab is only portrait โ then if you press to enter the message itself, you will get a view controller that supports landscape as well , as it does to enable landscape mode, when the user is talking โ, then if you click to view the faces profile, the new controller will be pressed, but a portrait will be executed! the same thing will happen if you return, you will be forced to return to the portrait, even if you came from a landscape ...
thank
source
share