I only want to support different Orientations on one View in my UINavigationController Stack. How can I do this?
It also has to work in iOS5.
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’ve had a lot of trouble with how iOS6 handles Orientation, hopefully this is what you’re looking for.
Create a category of UINavigationController and call it “UINavigationController+autoRotate”.
Put this in your UINavigationController+autoRotate.h:
Put this in UINavigationController+autoRotate.m:
For Views that you DO NOT want to rotate, add:
And for Views you DO want to rotate:
In your App’s delegate, add: