My view hierarchy looks like this:
tab bar -> navigation bar -> table view -> view 1 -> view 2 (UIWebView)
How can I rotate view 2 so it can be displayed in both landscape & portrait mode?
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.
Heres your fix…just solved the same problem. The issue is the tab bar controller is responding no to the shouldRotate method.
Ignore the advice in the apple docs and create a subclass for tab view controller. In that subclass handle the shouldRotate
Heres my complete subclass
TSTabBarController.h
and the implementation file.
If you change the class in IB for the tab bar controller you should just work.
Hope this helps.
Rich