2011-06-16 22 views

回答

0

你不能。您只能在iPhone應用程序啓動時設置用戶界面的方向。另外,你可以改變你的設備的方向:

[的UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]。

,並提供到shouldAutorotateToInterfaceOrientation適當的響應:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {返回(interfaceOrientation == UIInterfaceOrientationLandscapeRight); }

+0

其中setOrientation聲明? orientation是UIDevice的只讀屬性。 – MrTJ 2012-10-23 10:25:14

相關問題