I want autorotate in my application but there is a problem, the background in portrait mode is not the same as in landscape mode.
Is there anybody who can give me a short example how to solve this problem, please?
Thanks in advance
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.
Implement the method
in the ViewController that contains the background. Query the interfaceOrientation property on this ViewController to find out what is the current orientation and set the background according to the value (which is of type UIInterfaceOrientation).