在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 ) );