When I launch my iOS app, it launches in portrait mode. I initially turn the phone to landscape mode, and successfully resize my UIViews to fit the new screen. Then, I push a new UIViewController, which sizes components based on the current orientation in the viewDidLoad method. If it is landscape mode, it draws a UINavigationBar starting at (0,0) with length equal to the height of the iPhone, and height equal to 50.
Well, the UINavigationBar gets offset (the (0,0) point of it is off the screen) by an amount exactly equal to the height of the status bar. Why does the (0,0) point get messed up, and how do I fix this?
Let me just say that without the status bar (if I add the option to initially hide it), these problems do not exist.
You UIViewController is getting offset and the your coordiinates within the view are still at 0, 0.
Try re-setting the position of the ViewController.