您的位置:首页 > 移动开发 > IOS开发

ios方向

2015-09-01 10:57 302 查看
UIDevice:

typedef enum {
UIDeviceOrientationUnknown,
UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom

【设备垂直,home在底部】

UIDeviceOrientationPortraitUpsideDown, // Device oriented vertically, home button on the top

【设备反转,home在上部】

UIDeviceOrientationLandscapeLeft, // Device oriented horizontally, home button on the right

【设备水平向左,home在右】

UIDeviceOrientationLandscapeRight, // Device oriented horizontally, home button on the left

【设备竖屏向右,home在左】

UIDeviceOrientationFaceUp, // Device oriented flat, face up
UIDeviceOrientationFaceDown // Device oriented flat, face down
} UIDeviceOrientation;

水平:

UIDevice:左,home键右,【也就是说home=UIinterface】-----

竖直:

UIDevice和UIIterface一样

UIInterface:

typedef enum {
UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,

【用户界面垂直,home在底部】

UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,

【用户界面反转,home在上部】

UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,

【用户界面水平向左,home在左边】

UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft

【用户界面水平向右,home在右边】
} UIInterfaceOrientation;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: