2012-01-30 24 views
1

我想知道如何在啓動後自動旋轉iphone。如何在iPhone上啓動後設置方向

我的啓動圖像是在肖像中,但應用程序本身在橫向。

發射後方向仍然在人像中,而不是自動旋轉到風景。

這是我的info.plist

enter image description here

在我的根視圖控制器

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    // Return YES for supported orientations 
    return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight)); 

} 
+0

只你在potrait的啓動屏幕,並在景觀休息? – 2012-01-30 06:49:41

回答

4
enter image description here

如所示的圖像中,設置風景模式標記值。 。

+0

但我的啓動圖像處於縱向模式時 – Desmond 2012-01-30 06:37:25

+2

確定然後,發射後的圖像進行運行這一步, \t [UIApplication的sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft]。 – vishy 2012-01-30 06:53:07

+0

有[官方指南](http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedAppTricks/AdvancedAppTricks.html#//apple_ref/doc/uid/TP40007072-CH7-SW9 )推出橫向應用程序 – 2012-07-30 15:40:12

1

在iphone中啓動圖像總是在縱向模式下,你可以啓動圖像,使得它看起來是在景觀,但實際上它會在肖像模式

雖然iPad已經在這兩個模式的風景啓動圖像和人像選項

相關問題