2011-06-16 53 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

相关问题