I have a UIViewController (VC) which can be presented in landscape or portrait orientations. The VC contains an imageview whose autoresizingmask is set to: UIViewAutoresizingFlexibleLeftMargin
When the VC is launched in portrait mode and subsequently rotated, the imageview moves appropriately. However, when the VC is launched in landscape mode, it is moved too far to the right (rotating it to portrait places it in the correct portrait position). Any ideas as to what is causing this would be greatly appreciated. Thank you.