0
如何将所有方向选项添加到我的应用程序的.plist文件中?如何在.Plist文件中添加UIInterfaceorientation选项?
如何将所有方向选项添加到我的应用程序的.plist文件中?如何在.Plist文件中添加UIInterfaceorientation选项?
你不能。您只能在iPhone应用程序启动时设置用户界面的方向。另外,你可以改变你的设备的方向:
[的UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight]。
,并提供到shouldAutorotateToInterfaceOrientation适当的响应:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {返回(interfaceOrientation == UIInterfaceOrientationLandscapeRight); }
其中setOrientation声明? orientation是UIDevice的只读属性。 – MrTJ 2012-10-23 10:25:14