我想知道如何在啓動後自動旋轉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