0
例如,我的FirstVC是Portrait.When我点击按钮SecondVC出现时,我想在Landscape模式下显示SecondVC。如何在按钮单击时将肖像模式更改为风景模式?
例如,我的FirstVC是Portrait.When我点击按钮SecondVC出现时,我想在Landscape模式下显示SecondVC。如何在按钮单击时将肖像模式更改为风景模式?
设值= UIInterfaceOrientation.LandscapeLeft.rawValue UIDevice.currentDevice()的setValue(值,forKey: “方向”)。
此代码工作对我罚款。