如何在.Plist文件中添加UIInterfaceorientation选项?

时间:2011-06-16 03:09:52

标签: plist uiinterfaceorientation

如何将Orientation选项全部添加到我的应用程序的.plist文件中?

1 个答案:

答案 0 :(得分:0)

你做不到。您只能在iPhone App启动时设置用户界面的方向。此外,您还可以更改设备的方向:

  

[[UIDevice currentDevice]   setOrientation:UIInterfaceOrientationLandscapeRight];

并对shouldAutorotateToInterfaceOrientation提供适当的响应:

  

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