我想知道如何在启动后自动旋转iphone。如何在iPhone上启动后设置方向
我的启动图像是在肖像中,但应用程序本身在横向。
发射后方向仍然在人像中,而不是自动旋转到风景。
这是我的info.plist
在我的根视图控制器
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
只你在potrait的启动屏幕,并在景观休息? – 2012-01-30 06:49:41