0

我有一个只能在横向模式下工作的应用程序,并且正在使用情节提要来布局视图。问题是使用 Trait 集合/大小类,默认情况下视图以纵向模式显示,这使得布局变得困难。我无论如何都找不到更改主 UIView 的框架,以便它以横向显示。有任何想法吗?

4

1 回答 1

0

In Xcode 8, you can select the orientation of the view controllers in the storyboard by clicking the device family and size class button on the bottom of the Interface Builder screen when you have the Storyboard open.

Device family and size classes button

[1]


This exposes the device configuration pane in which you can select different screen sizes and orientation.

Device configuration pane

[2]

于 2017-06-09T15:31:21.483 回答