IOS目录中RootViewController.mm //显示竖屏 - (BOOL) shouldAutorotate { return NO; } //显示横屏 - (BOOL) shouldAutorotate { return YES; }