UIDevice.currentDevice().setValue(UIInterfaceOrientation.LandscapeLeft.rawValue, forKey: "orientation")
http://www.cocoachina.com/ios/20150810/12895.html
本文介绍如何使用Swift语言来设定iOS设备的屏幕方向为左横屏。通过调用UIDevice的currentDevice方法并设置其orientation属性实现。
UIDevice.currentDevice().setValue(UIInterfaceOrientation.LandscapeLeft.rawValue, forKey: "orientation")
http://www.cocoachina.com/ios/20150810/12895.html

被折叠的 条评论
为什么被折叠?