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;
水平:
UIInterface:
typedef enum {
UIInterfaceOrientationPortrait = UIDeviceOrientationPortrait,
【用户界面垂直,home在底部】
UIInterfaceOrientationPortraitUpsideDown = UIDeviceOrientationPortraitUpsideDown,
【用户界面反转,home在上部】
UIInterfaceOrientationLandscapeLeft = UIDeviceOrientationLandscapeRight,
【用户界面水平向左,home在左边】
UIInterfaceOrientationLandscapeRight = UIDeviceOrientationLandscapeLeft
【用户界面水平向右,home在右边】
} UIInterfaceOrientation;
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;
相关文章推荐
- iOS开发:仿网易新闻首页多频道视图切换
- IOS OC声明变量在@interface括号中与使用@property的区别
- iOS容易造成循引用的场景
- 清除ios的缓存
- iOS thread1:exc_bad)access(code=exc_1386_gpflt) 调试方案
- iOS应用程序运行原理及各步骤解析
- iOS:学习runtime的理解和心得
- iOS 多线程介绍
- 苹果开发 笔记(64)BlocksKit
- 【iOS】彩色TabBar切换动画实现
- iOS 基础知识
- iOS设置状态栏字体颜色,是否隐藏等
- (转)ios中点击地图控件MKMapView的某点获取该点的经纬度
- iOS设计模式——中介者模式
- iOS深入学习(Block全面分析)
- iOS快速开发必备
- 【读书笔记】iOS-NSDictionary与NSArray的比较
- 【读书笔记】iOS-NSDictionary与NSArray的比较
- iOS调试——断点
- iOS学习总结之沙盒和归档