Is there any way that we can Forcefully change app orientation from portrait to landscape while navigating ?
I have a requirement that while pushing controller from A to B. B should be in landscape but my A controller is in portrait.
iphonelandscapeobjective corientationuinavigationcontroller
Is there any way that we can Forcefully change app orientation from portrait to landscape while navigating ?
I have a requirement that while pushing controller from A to B. B should be in landscape but my A controller is in portrait.
Best Answer
In your ViewController-B add this lines of code in viewDidLoad:
This code is working fine if you are using navigation controller to move from A to B.
I have used this.
Hope this will help you.
Enjoy Coding :)