setStatusBarOrientation方法
来源:互联网 发布:java高斯模糊算法 编辑:程序博客网 时间:2024/05/05 17:13
通常在使用视图控制器时,状态栏的方向会自动改变。如果要强制状态栏朝向一个方向,可以用UIApplication类的setStatusBarOrientation方法:
[ myApp setStatusBarOrientation: UIInterfaceOrientationLandscapeRight
animated: NO
];
在设备上有下列方向可以使用:
UIDeviceOrientationPortrait
在竖屏模式,垂直向上
UIDeviceOrientationPortraitUpsideDown
在竖屏模式,垂直方向上下颠倒
UIDeviceOrientationLandscapeLeft
设备逆时针旋转到横屏模式
UIDeviceOrientationLandscapeRight
设备顺时针旋转到横屏模式
UIDeviceOrientationFaceUp
设备平放在类似桌子的平面上,正面向上
UIDeviceOrientationFaceDown
设备平放在类似桌子的平面上,正面向下
- setStatusBarOrientation方法
- iOS 关于调整状态栏方向方法setStatusBarOrientation的使用注意事项
- iOS6 setStatusBarOrientation失效
- setStatusBarOrientation 未生效的解决办法
- setStatusBarOrientation 未生效的解决办法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- 方法
- ECSHOP二次开发中关于文档后台菜单的功能说明
- volatile 详解
- ABAP程序权限对象设定
- Android数据持久化之SQLite
- 各种版本JS调试大全
- setStatusBarOrientation方法
- 在用CMWAP下 发送中文GET请求
- 驱动模块编译错误提示--implicit declaration of function ‘kmalloc’
- Oracle查询用户权限
- ECSHOP 2.7.2 文件结构及各文件相应功能介绍
- ecshop2.7.2最新版去版权方法
- Asp.net 用Zedgraph 画饼形图
- Winsock MSDN Sample (Server)
- PHP安全的一些想法