iPhone 如何添加横屏代码
2015-08-21 14:27
197 查看
方案之一,
在UINavigationController 里设置supportedInterfaceOrientations方法,但由于UINavigationController 是系统控件,所以需要新建一个UINavigationController 的子类,然后在子类里实现
在UINavigationController 里设置supportedInterfaceOrientations方法,但由于UINavigationController 是系统控件,所以需要新建一个UINavigationController 的子类,然后在子类里实现
-(NSUInteger)supportedInterfaceOrientations{ return UIInterfaceOrientationMaskAllButUpsideDown; }
相关文章推荐
- Java中取资源时,Class.getResource和ClassLoader.getResource
- Spring bean reference example
- 退出(C# Winform)
- 代码注释技术
- 【Base64】JDK里面实现Base64的API
- spring定时器
- C++ Rand()各种实现
- Python yield 使用浅析
- C/C++常用时间函数介绍
- Constructor injection type ambiguities in Spring
- springmvc学习笔记(一)第一个helloworld
- php中 自己写的各种实用正则表达式-实时更新 2015-08-21 15:30:43
- 设计模式实例(Lua)笔记之七(Decorator模式)
- delphi截屏
- 一个常见的Spring IOC疑难症状
- eclipse到Android Studio的项目迁移
- 关于googleplay 安装-505错误
- phpci发送邮件
- Spring DI via constructor
- 黑马程序员-[C语言]学习日记(二)