如何使 iOS 应用程序在 XCode 中支持横向?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5833726/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:56:37  来源:igfitidea点击:

How to make an iOS app support landscape orientation in XCode?

xcodescreen-orientation

提问by user722566

How to make an iOS app support landscape orientation?

如何让 iOS 应用支持横向?

How do you make it support both landscape and portrait, where you can just press a button to activate it.

你如何让它支持横向和纵向,你只需按一个按钮就可以激活它。

回答by PICKme

for any new people reading this old post just go to main.storyboard->click on the view controller click on simulated metrics (the fourth icon that pops up, looks kind of like a pentagon belt buckle) then orientation->Landscape this is for Xcode 5

对于阅读这篇旧帖子的任何新人,只需转到 main.storyboard->单击视图控制器单击模拟指标(弹出的第四个图标,看起来有点像五角形皮带扣)然后方向->风景这是为了Xcode 5