Tag: 面向对象

如何在iOS 6中以编程方式更改设备方向

在iOS 5中,我们可以像这样以编程方式更改设备方向: [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]; 但在iOS 6中, setOrientation已被弃用,我如何在iOS 6中以编程方式更改设备方向?