博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cocos2d-1.0.1-x-0.10.0版本 设置横屏与竖屏的方法
阅读量:4474 次
发布时间:2019-06-08

本文共 575 字,大约阅读时间需要 1 分钟。

设置横屏与竖屏的方法

找到RootViewController.m这个文件,打开

找到这个方法

// Override to allow orientations other than the default portrait orientation.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// return YES for the supported orientations
// Only landscape  仅支持横向
// return ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
// Only portrait    仅支持竖向
// return ( ! UIInterfaceOrientationIsLandscape( interfaceOrientation ) );
// All orientations  既支持竖向又支持横向
// return YES;
}

转载于:https://www.cnblogs.com/xuling/archive/2012/02/05/2339419.html

你可能感兴趣的文章
psp项目计划
查看>>
leetcodePython【193】: Valid Phone Numbers
查看>>
根据twitter的snowflake算法生成唯一ID
查看>>
Android 联网监控抓包工具的制作(tcpdump的使用)
查看>>
四人团-江南行-绍兴旅游
查看>>
Java8学习笔记(九)--日期/时间(Date Time)API指南
查看>>
hibernate映射文件基础
查看>>
oracle惯用缩写的含义
查看>>
JavaScript闭包学习笔记
查看>>
Kattis - CD
查看>>
.Net 框架
查看>>
58同城智能推荐系统的演进与实践(转)
查看>>
mysql中的substr()函数
查看>>
201621123031 《Java程序设计》第4周学习总结
查看>>
iOS蓝牙4.0
查看>>
MySQL相关文档索引
查看>>
<转>wordpress小工具制作前台后台全解析
查看>>
461. Hamming Distance(leetcode)
查看>>
实验二
查看>>
(二)webpack入门——webpack的使用
查看>>