ios开发---UIDeviceOrientation和UIInterfaceOrientation的区别
2014-02-10 00:49
549 查看
UIDeviceOrientation 是机器硬件的当前旋转方向 这个你只能取值 不能设置
获取当前设备的旋转方向:[[UIDevice currentDevice] orientation](第一次使用的时候,总是返回0)
UIInterfaceOrientation 是你程序界面的当前旋转方向 这个可以设置
获取当前界面的旋转方向:self.interfaceOrientation或[[UIApplication sharedApplication] statusBarOrientation]
获取当前设备的旋转方向:[[UIDevice currentDevice] orientation](第一次使用的时候,总是返回0)
UIInterfaceOrientation 是你程序界面的当前旋转方向 这个可以设置
获取当前界面的旋转方向:self.interfaceOrientation或[[UIApplication sharedApplication] statusBarOrientation]
相关文章推荐
- UIInterfaceOrientation和UIDeviceOrientation的区别
- UIInterfaceOrientation和UIDeviceOrientation的区别
- NT_iOS笔记—iOS图片显示3_界面的手动旋转(UIDeviceOrientation和UIInterfaceOrientation)
- IOS开发-UI学习-NSBundle和NSURL的区别(读取文件以及写入文件)
- 设备旋转UIDeviceOrientation 和 UIInterfaceOrientation
- IOS开发中用@interface声明局部变量ivar和用@property声明属性的区别
- [IOS开发教程] IOS UIDevice & IOS检测屏幕旋转实例
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的方向
- 在iOS开发中关于(UIDevice、NSBundle、NSLocale)注意:凡是使用这些控件必须引入“UIKit.h”框架
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
- IOS上的UIApplicationInvalidInterfaceOrientation crash
- 【iOS开发-25】UIDevice查看系统信息,从一个问题開始怎样高速找到自己想要的属性和方法并看懂它
- UIDeviceOrientation和UIInterfaceOrientation中left、right的含义
- UIDeviceOrientation 和 UIInterfaceOrientation 设备旋转的用法 (实例)
- UIDeviceOrientation与UIinterfaceOrientation以及屏幕旋转的方式
- UIDeviceOrientation 和 UIInterfaceOrientation
- IOS - [UIDevice currentDevice] name/model/localizedMode/systemName/systemVersion...../userInterfaceIdiom