I dealt with orientation by register as an observer, and rotate the navigationController's view to the desired orientation. But some view controllers deal with orientation changes by the following methods.
Responding to View Rotation Events
- willRotateToInterfaceOrientation:duration:
- willAnimateRotationToInterfaceOrientation:duration:
- didRotateFromInterfaceOrientation:
- willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
- didAnimateFirstHalfOfRotationToInterfaceOrientation:
- willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
Those methods will make the navigation bar's height become thinner under landscape orientation, and I don't want this behavior. I hope the height of navigation bar never change. How to achieve this?