iOS开发 Orientation 屏幕旋转 现在随着手机屏幕的增大,很多项目都是竖屏控制的,但是,也有需要横屏的时候,现在将方法整理一下。1 项目中General 设置,图1是iOS7之前的版本,图2是iOS7之后的版本。 2 代码枚举值 UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom UIDeviceOrientationPortraitUpsideDown, // Device oriented vertically, home button on the topUIDeviceOrientationLandscapeLeft, // Device oriented horizontally, home button on the right UIDeviceOrientationLandscapeRight, // Device oriented horizontally, home button on the left UIDeviceOrientationFaceUp, // Device oriented flat, face up UIDeviceOrientationFaceDown // Device oriented flat, face down */