iOS ios5 以下的横屏代码
来源:互联网 发布:syslog centos 编辑:程序博客网 时间:2024/04/28 20:10
ios5的系统不能直接在xxx.plist文件里面设置横屏 需要在页面添加以下两个方法
(
[selfpresentViewController:vc animated:YEScompletion:nil];跳到那个页面添加那两段 之后在那个页面的 add 和 remove 都不要再添加了 但是如果又有新的用
这个 [selfpresentViewController:vc animated:YEScompletion:nil];
来跳转的话又要在第一个页面添加那两段话
-(NSUInteger)supportedInterfaceOrientations{ //UIInterfaceOrientationMaskLandscape、UIInterfaceOrientationMaskAll、UIInterfaceOrientationMaskAllButUpsideDown //UIInterfaceOrientationMaskLandscape return UIInterfaceOrientationMaskLandscape; }//考虑到兼容低版本,最好加上: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft||interfaceOrientation == UIInterfaceOrientationLandscapeRight) { return YES; } else { return NO; } } //上面改UIInterfaceOrientationLandscapeLeft
- iOS ios5 以下的横屏代码
- 自定义navigation bar 支持iOS5以及iOS5以下版本的代码
- ios5 代码获取storyboard文件的对象
- ios5 代码获取storyboard文件的对象
- ios 6 与 ios5 的屏幕旋转
- ios 6 与 ios5 的屏幕旋转
- ios 6 与 ios5 的屏幕旋转
- ios 6 与 ios5 的屏幕旋转
- iOS6的framework运行在iOS5或者以下版本机器上报错的解决办法
- iOS6的framework运行在iOS5或者以下版本机器上的解决办法
- IOS5以下版本不支持position:fixed属性
- iOS 另外一个使用类的代码,四则运算,很简单,熟悉以下
- iOS5编程--官方例子代码的研究
- ios5 storyboard 代码获取独立的 viewController对象
- 附自适应图片的通用代码 适用ios4 ios5 ios6
- IOS5快速打开一些系统应用的代码
- ios5 storyboard 代码获取独立的 viewController对象
- iOS: iOS5有,但iOS4没有的特性
- Android 如何让EditText不自动获取焦点
- android 自定义时钟控件
- Android——MediaPlayer
- fedora中实现有线无线网络连接
- OCP-1Z0-053-V12.02-83题
- iOS ios5 以下的横屏代码
- VIM设置,自动换行
- Remove Element - leetcode
- u-boot移植到mini2440,u-boot版本2008.10
- OpenStack的网络管理指南(3)——对Openstack身份和计算所需的配置
- java正则表达式验证手机号码,ip地址和邮箱
- gridView常用属性和技巧介绍 C#
- asp.net 解决使用OLEDB导入excel数据时同时包含文本和数字的列无法正常读取情况
- FileChannal文件上传以及对文件像素进行压缩