开发者

How to add UIInterfaceorientation Option in to .Plist file?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜