开发者

Fix To LandScape [closed]

开发者 https://www.devze.com 2023-02-19 05:13 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its cur开发者_运维百科rent form.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its cur开发者_运维百科rent form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

Can i fix my application to landscape permanently?


In your application’s Info.plist file, add the UIInterfaceOrientation key and set its value to the landscape mode. For landscape orientations, you can set the value of this key to UIInterfaceOrientationLandscapeLeft or UIInterfaceOrientationLandscapeRight.

Override your view controller’s shouldAutorotateToInterfaceOrientation: method and return YES only for the desired landscape orientation and NO for portrait orientations.

Refer Landscape Mode ONLY for iPhone or iPad for more details

0

精彩评论

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