3.20 内存及效率的一些总结 3.21 设置竖屏 3.22 CCLOG与CCLog区别
2013-12-05 00:21
387 查看
3.20 内存及效率的一些总结
3.21 设置竖屏
1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、IOS
- (NSUInteger) supportedInterfaceOrientations
{
#ifdef __IPHONE_6_0
// 横屏显示
// return UIInterfaceOrientationMaskLandscape;
// 竖屏显示
return UIInterfaceOrientationMaskPortrait;
#endif
}
RootViewController.cpp 文件中 如下代码 设置竖屏
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsLandscape( interfaceOrientation );
}
3.22 CCLOG与CCLog区别
CCLOG:在编译代码是不参与编译
CCLog:需要通过打印语句调试编译代码时使用
3.21 设置竖屏
1、android
AndroidManifest.xml文件中,
screenOrientation="landscape" 为横屏,
screenOrientation="portrait"为竖屏
2、IOS
- (NSUInteger) supportedInterfaceOrientations
{
#ifdef __IPHONE_6_0
// 横屏显示
// return UIInterfaceOrientationMaskLandscape;
// 竖屏显示
return UIInterfaceOrientationMaskPortrait;
#endif
}
RootViewController.cpp 文件中 如下代码 设置竖屏
// Override to allow orientations other than the default portrait orientation.
// This method is deprecated on ios6
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return UIInterfaceOrientationIsLandscape( interfaceOrientation );
}
3.22 CCLOG与CCLog区别
CCLOG:在编译代码是不参与编译
CCLog:需要通过打印语句调试编译代码时使用
相关文章推荐
- JVM内存设置参数总结
- JVM--内存参数设置及常见错误总结
- js中的Object和function的一些比较,typeof和constructor总结 区别
- 【orange】关于将数据从软盘读到内存的一些总结
- 在两个页面间翻转设置Animation动作的一些总结
- x264的一些参数设置对编码效率的影响
- CENTOS设置PATH环境变量一些方法总结
- atitit.微信项目开发效率慢的一些总结
- 老基础的一些总结 大小端 内存对齐 分配
- JAVA内存的一些总结(一) 内存的划分
- 总结集线器、网桥、交换机、路由器区别和一些ip地址知识
- java内存区域-堆栈总结、区别
- 转:在两个页面间翻转设置Animation动作的一些总结
- JVM 内存设置大小(Xms Xmx PermSize MaxPermSize 区别)
- 对java内存回收机制的一些总结
- atitit.微信项目开发效率慢的一些总结
- SqlServer物理内存及虚拟内存设置的总结
- JAVA内存的一些总结(二) 对象访问
- 消息队列和管道的区别以及和共享内存相比效率低的原因
- 关于java对象内存的一些总结