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