迪帕克·塔加迪亚
如何在swift 3中禁用纵向?
xcode 8 and swift 3
KKRocks
试试这个 :
按用户界面
以编程方式
在 appdelegate 中添加这个
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask(rawValue: UIInterfaceOrientationMask.landscape.rawValue)
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
编辑于
我来说两句