cocos2d 0.99.5 / 1.00 版本 横屏 竖屏

在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 ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );

纵屏这样修改:

return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );


你可能感兴趣的:(cocos2d 0.99.5 / 1.00 版本 横屏 竖屏)