#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的修改成如下代碼即可豎屏:
return ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );