在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 ) ); 转载于:https://www.cnblogs.com/pinping/archive/2011/08/03/2125834.html