开发者

How to add UIInterfaceorientation Option in to .Plist file?

开发者 https://www.devze.com 2023-03-13 19:07 出处:网络
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,

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); }

0

精彩评论

暂无评论...
验证码 换一张
取 消