基于mac平台上用cocos2dx开发屏幕竖屏设置 x-code5
来源:互联网 发布:网络传输介质 编辑:程序博客网 时间:2024/05/23 13:31
第一步
左侧项目栏里面找到RootViewController.mm
/ Override to allow orientations other than the default portrait orientation.// This method is deprecated on ios6- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsPortrait( interfaceOrientation ); //竖直 // return UIInterfaceOrientationIsLandscape( interfaceOrientation );}// For ios6, use supportedInterfaceOrientations & shouldAutorotate instead- (NSUInteger) supportedInterfaceOrientations{#ifdef __IPHONE_6_0 //return UIInterfaceOrientationMaskAllButUpsideDown; return UIInterfaceOrientationMaskPortrait;#endif}找到上面这段就好了
第二步
点击项目 名称就是项目烂第一个然后找到 deployment info 这个栏目 把 Device Orientation里面得 Portrait 打上勾 ok了
0 0
- 基于mac平台上用cocos2dx开发屏幕竖屏设置 x-code5
- Mac OS X 平台上的开发利器---XCode
- Mac平台的Cocos2dx开发环境搭建
- 在Mac上用cocos2dx开发环境配置
- cocos2dx-2.X前后台切换分析,基于android平台
- cocos2dx-屏幕设置
- cocos2dx-屏幕设置
- cocos2dx-屏幕设置
- code5
- mac OS X 上设置动态JAVA_HOME
- win8平台下搭建cocos2dx 3.x+android开发环境
- Mac os x 10.10上使用quicktime录制iphone屏幕
- Mac OS X系统上使用Eclipse开发环境C访问Mysql数据库的设置
- Mac平台上OpenCV开发环境搭建
- cocos2dx安卓平台横竖屏设置
- 从Windows的角度看Mac OS X上的软件开发兼谈跨平台开发的一些可行方向
- Python 学习之一:在Mac OS X下基于Sublime Text搭建开发平台包含numpy,scipy
- 基于mac上搭建python开发环境
- 配色方案
- stl之四: MAP用法详解【转】
- hdu 1009 FatMouse' Trade
- ORA-31693, ORA-02354 and ORA-01555 with Export Datapump
- lua学习笔记--交互模式简单说明
- 基于mac平台上用cocos2dx开发屏幕竖屏设置 x-code5
- 几种索引扫描方式学习
- c++中的一些类型转换 : CString,string,int ,long,double,char*,const char*,date等----留着备用
- ios面试
- vc 线程创建关闭(彻底讲解)
- iOS网络编程实践--NSStream实现TCP Socket iPhone客户端
- 比较两个时间大小的三种方法
- initrd映像文档的作用和制作
- live555源码分析----H264的数据处理