xcode 5如何更改横屏竖屏
2014-03-06 15:02
281 查看
info plist里面修改
Supported interface orientations
Landscape (left home button) // 横屏
Landscape (right home button) // 横屏
Portrait (top home button) // 竖屏
Portrait (bottom home button) // 竖屏
RootViewController.mm里
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// return UIInterfaceOrientationIsLandscape( interfaceOrientation ); // 横屏
return
UIInterfaceOrientationIsPortrait( interfaceOrientation ); // 竖屏
}
Supported interface orientations
Landscape (left home button) // 横屏
Landscape (right home button) // 横屏
Portrait (top home button) // 竖屏
Portrait (bottom home button) // 竖屏
RootViewController.mm里
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// return UIInterfaceOrientationIsLandscape( interfaceOrientation ); // 横屏
return
UIInterfaceOrientationIsPortrait( interfaceOrientation ); // 竖屏
}
相关文章推荐
- 安卓之PreferenceActivity分享
- Oracle数据库三种标准的备份方法
- 用CornerStone配置SVN,HTTP及svn简单使用说明
- Windows下安装Django及WEB服务启动
- Android获取当前位置,location为空
- sql中 in 、not in 、exists、not exists 用法和差别
- 一起学android之底部菜单TabHost的实现(9)
- 算机技术和通信技术紧密结合的产物
- ListView下拉刷新上拉加载更多实现
- libpomelo+cocos2d-x开发环境筹建(windows版)
- 【Android自动化测试之Robotium】04. 命令行运行Android Robotium自动化用例或单元测试用例
- leetcode Sort Colors java实现
- ListView下拉刷新上拉加载更多实现
- 构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(30)-本地化(多语言)
- JQuery Common Method (keeping Update)
- 另类,用串口实现普通电脑的开关量输入
- PreferenceActivity详解
- windows 2012R2 上必须要用sharepoint 2013 sp1.
- cocos2d-x 遇到的错误与解决方法。make: *** No rule to make target `/cygdrive/d/android/cocos2d-x-master/T12/proj.android/../../cocos2dx/xxxxx.cpp'
- uboot如何设置nfs的启动参数