Tag: autorotate uiinterfaceorientation

如何在iOS上旋转自定义启animation面?

我的启animation面正在工作,但我的应用程序在横向模式下工作,启animation面以默认肖像模式显示。 我如何启动应用程序,以便启动屏幕像风景模式之间旋转我的应用程序? 我使用下面的代码: – (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Overriden to allow any orientation. if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) return YES; else { return NO; } } 和启animation面 -(void)displayScreen { UIViewController *displayViewController=[[UIViewController alloc] init]; displayViewController.view = displaySplashScreen; [self presentModalViewController:displayViewController animated:NO]; [self performSelector:@selector(removeScreen) withObject:nil afterDelay:3.0]; } -(void)removeScreen { [[self modalViewController] dismissModalViewControllerAnimated:YES]; } 但是我怎样才能把旋转显示屏幕内?