I have an app with a tab bar, and nav controllers in each tab. When user shakes the device, a UIImageView appears as a child view in the nav controller. But the
UIImageView
Use the [[UIDevice currentDevice] orientation] method, as specified here.
[[UIDevice currentDevice] orientation]