我想知道如何在iphone发布后自动旋转。
我的启动图像是肖像,但应用程序本身是风景。
启动后,方向仍然是肖像,而不是自动旋转到横向。
这是我的info.plist

在我的根视图控制器中
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}发布于 2012-01-30 14:24:41

如图所示,设置横向模式的标记值。
发布于 2012-01-30 16:03:29
在iphone中,启动图像总是处于纵向模式,您可以使启动图像看起来像是在横向模式,但实际上它将处于纵向模式
虽然ipad在横向和纵向模式下都有启动图像的选项
https://stackoverflow.com/questions/9060019
复制相似问题