My navigation controller’s navigation bar won’t change the height when rotated to landscape.

see it stays at 44 pixels instead of 34 i think.
What do i do to fix this?
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 have to add your navigation controller directly as a subview to your window, otherwise this doesn’t work automatically. (It is not necessary to change the frame of your navigation bar manually.)
The
-[application:didFinishLaunchingWithOptions:]method of yourAppDelegateshould contain something likeTo get an example where this works automatically, you can also create a new navigation-based app in XCode and add an implementation for the
shouldAutorotateToInterfaceOrientation:method of the RootViewController that always returns YES.