I'm having an issue where some of my views look incorrect on App load until you rotate the device, and some where they look correct after load but incorrect after rotating.
I have a window that loads with View A and after a button press, detachs View A from the window (RemoveFromSuperView) and loads View B and adds it to the window.
View A - has white space on the bottom the height of the status bar, which is fixed on rotation of the device.
View B - looks correct on load, but has part of bottom chopped off after device rotation.
What would cause this strange behavior?
If I view my XIB files from Interface Builder through File->Simulate Interface, they work fine. But they don't work from my application, same thing happens on actual device too.
PS - I don't think I have any custom code that should cause this, I just created Views A and B in IB and hooked them up to subclassed controllers so I could override ShouldAutorotateToInterfaceOrientation.