cocos2d 0.99.5版本屏幕默认是横屏,怎么修改为竖屏呢?

在RootViewController.m文件里面,修改如下代码
#elif GAME_AUTOROTATION == kGameAutorotationUIViewController
    //
    // EAGLView will be rotated by the UIViewController
    //
    // Sample: Autorotate only in landscpe mode
    //
    // return YES for the supported orientations
    
    return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );

posted @ 2011-08-03 10:05  程序是啥  阅读(685)  评论(0编辑  收藏  举报