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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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 🙂