I use…
-(void)didRotateFromInterfaceOrientation:
… to adapt a view that has been rotated to landscape.
However, I don’t know which method to use when the view needs to be rotated back to 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.
You can use the same method but include a test to see what the orientation change was.
However, configuring a view for its new orientation should be done in one of the rotation methods that begin with “will”. The above method tells the view controller what the previous orientation was. It doesn’t send what the current orientation is or will be. The “will” methods allow you adapt the view before the new orientation completes.