阅读背景:

UIDevice.current.setValue(value,forKey:“orientation”)如果手机保持横向并倾斜45 - 90度不起作用

来源:互联网 

I'm using

let value = UIInterfaceOrientation.landscapeRight.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
let value = UIInterfaceOrientation



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: