您的位置:首页 > 其它

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:需要通过打印语句调试编译代码时使用
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: