【发布时间】:2015-12-31 09:08:54
【问题描述】:
我们如何使用 xib 快速将一个特定的视图控制器设置为横向模式?
func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
let orientation: UIInterfaceOrientationMask =
[UIInterfaceOrientationMask.Portrait, UIInterfaceOrientationMask.PortraitUpsideDown]
return orientation
}
我正在使用上面的代码,但它似乎不起作用..
【问题讨论】: