How can i add a开发者_如何学JAVAll for Orientation option in to my application's .plist file?
You can't. You can only set the orientation for user interface when the iPhone App launches. In addition, you can change the orientation of your device:
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
and provide the appropriate response to shouldAutorotateToInterfaceOrientation:
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); }
精彩评论