在iOS 5中,我们可以通过编程方式更改设备方向,如下所示:
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
但是在iOS 6 setOrientation中已弃用,我如何在iOS 6中以编程方式更改设备方向?
setOrientation
objective-c uiinterfaceorientation ios
ios ×1
objective-c ×1
uiinterfaceorientation ×1