In iOS 5 we could change the device orientation programmatically like so:
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
But in iOS 6 setOrientation
is deprecated, how may i change the device orientation programmatically in iOS 6?
This works for me on Xcode 6 & 5.