cocos2d-x 2.14 在IOS 6.1 中竖屏设置
来源:互联网 发布:淘宝直通车推广费用 编辑:程序博客网 时间:2024/05/30 04:19
cocos2d-x 2.14 在IOS 6.1 中竖屏设置方法如下:
看图找到 RootViewController.mm 文件
之后打开RootViewController.mm 文件,找到如下代码,并按照我写的注释修改就行了
- // Override to allow orientations other than the default portrait orientation.
- // This method is deprecated on ios6
- - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
- //横屏用这个
- //return UIInterfaceOrientationIsLandscape( interfaceOrientation );
- //竖屏用这个
- return UIInterfaceOrientationIsPortrait(interfaceOrientation);
- }
- // For ios6, use supportedInterfaceOrientations & shouldAutorotate instead
- - (NSUInteger) supportedInterfaceOrientations{
- #ifdef __IPHONE_6_0
- //横屏用这个
- //return UIInterfaceOrientationMaskLandscape;
- //竖屏用这个
- return UIInterfaceOrientationMaskPortrait;
- #endif
- }
- cocos2d-x 2.14 在IOS 6.1 中竖屏设置
- cocos2d-x 2.14 在IOS 6.1 中竖屏设置
- 使用cocos2d-x时在ios上设置竖屏
- 使用cocos2d-x时在ios上设置竖屏
- 使用cocos2d-x时在ios上设置竖屏
- ios cocos2d-x 设置 横屏 竖屏
- cocos2d-x在Xcode(iOS )中设置横竖屏的解决方案
- 使用COCOS2D-X JSB开发,在js页面中设置iOS键盘模式
- 使用cocos2d-x时在ios上设置竖屏ZZ
- Cocos2d-x 2.x设置竖屏方法 android ios
- cocos2d 在ios上设置横竖屏
- IOS Cocos2d-x 设置竖屏的方法
- cocos2d-x ios 设置横屏/竖屏(全)
- cocos2d-x颜色设置
- cocos2d-x设置颜色
- cocos2d-x按钮设置
- 【cocos2d-x】cocos2d-x中设置颜色
- 设置 quick-cocos2d-x 在 Mac 下的编译环境
- asp.net 第二天 2013-11-20
- 带参数的构造函数
- 这个数用二进制表示
- jQuery插件开发中$.extend和$.fn.extend辨析
- 两篇很牛的vim使用技巧
- cocos2d-x 2.14 在IOS 6.1 中竖屏设置
- Domino登录时,domcfg中表单的reasonType值含义
- 添加cpp文件到cscope
- Postgres归档设置
- XML三部曲之拨云见日DTD(一)
- TCP协议的部分解析(2)
- 外观模式
- Postgres在线备份步骤
- acm---简单编码(可是真够简单的。。。)