xcode5 设置横屏 兼容ios5
来源:互联网 发布:gis数据开发工程师 编辑:程序博客网 时间:2024/05/29 09:44
重载shouldAutorotateToInterfaceOrientation:方法,这种方式是可行的。具体如下:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation ==UIDeviceOrientationLandscapeLeft)||(interfaceOrientation ==UIDeviceOrientationLandscapeRight));
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation ==UIDeviceOrientationLandscapeLeft)||(interfaceOrientation ==UIDeviceOrientationLandscapeRight));
}
如果有全局设置的方法,谢谢留言
- xcode5 设置横屏 兼容ios5
- Xcode6中如何设置兼容iOS5?
- Xcode5 iOS5.1.1
- IOS6旋转屏、锁定横屏的实现(兼容IOS5)
- iOS5兼容 framework Optional
- xcode5 修改支持ios5以上工程
- xcode5创建支持ios5的应用
- Xcode5离线安装IOS6、IOS5模拟器
- Xcode5 支持 iOS5 问题解决过程记录
- Xcode5离线安装IOS6、IOS5模拟器
- Xcode5离线安装IOS6、IOS5模拟器
- xcode5.1下安装ios5.0模拟器
- ios5兼容navigationBar背景问题
- xcode5兼容低版本SDK
- xcode5设置LaunchImage
- XCode5设置字体
- Xcode5 设置DEBUG变量
- xCode5设置app图标
- ActiveMQ在C#中的应用
- OpenGL ES渲染管线(graphics pipeline)
- JAVA接口的作用
- C语言函数指针变量
- UIImageWriteToSavedPhotosAlbum保存图片的方法
- xcode5 设置横屏 兼容ios5
- 电源管理基本观念之二
- DNS负载均衡技术
- PhoneGap-Android开发环境搭建
- StringBuilder、StringBuffer、String
- 操作手册
- Openstack Multihost External Network 部署
- Traceview的使用
- 如何实现shell并发