xcode 将 xib 文件中的视图旋转到横向模式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6377961/
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 21:16:59  来源:igfitidea点击:

Rotate view in xib file to landscape mode

iphonexcodeios4xcode4landscape

提问by Tono Nam

Possible Duplicate:
How do i rotate a window in xCode 4 interface builder tool thing?

可能的重复:
如何在 xCode 4 界面构建器工具中旋转窗口?

Is it possible to rotate :

是否可以旋转:

enter image description here

在此处输入图片说明

to landscape mode. I want my application to just support landscape mode therefore it will be easier if I could work on landscape mode with Xcode. I know how to rotate the view on the iPhone and iPad simulator but I actually want to rotate it in Xcode.

到横向模式。我希望我的应用程序只支持横向模式,因此如果我可以使用 Xcode 在横向模式下工作会更容易。我知道如何在 iPhone 和 iPad 模拟器上旋转视图,但我实际上想在 Xcode 中旋转它。

回答by cesarislaw

It's under the Simulated Metrics section of the Attributes view.

它位于 Attributes 视图的 Simulated Metrics 部分下。

Set the Orientation drop down to portrait

将方向下拉设置为纵向