I have the initial view controller that is portrait, and I want the next view controller to only be landscape. The user can’t turn the iPhone/iPad to change rotation. Can someone please help me with this?
Any help appreciated.
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.
I think what you want is : shouldAutoRotateToInterfaceOrientation method of
UIViewControllerClass.This function returns
YESif the orientations is supported by yourUIView. If youreturn YESonly to thelandscape orientation, then the iPhone will automatically be put in that orientation.GoodLuck !!!