Swift-弹出对话框禁用方向
我目前正在使用Swift弹出式库,来自: 尽管有一件事,但一切都很好。当方向改变时,弹出对话框将旋转。。。这一事实与我的实施相冲突:Swift-弹出对话框禁用方向,swift,popup,orientation,landscape,portrait,Swift,Popup,Orientation,Landscape,Portrait,我目前正在使用Swift弹出式库,来自: 尽管有一件事,但一切都很好。当方向改变时,弹出对话框将旋转。。。这一事实与我的实施相冲突: override func viewWillAppear(_ animated: Bool) { UIDevice.current.setValue(Int(UIInterfaceOrientation.landscapeRight.rawValue), forKey: "orientation") } override func viewDidApp
override func viewWillAppear(_ animated: Bool) {
UIDevice.current.setValue(Int(UIInterfaceOrientation.landscapeRight.rawValue), forKey: "orientation")
}
override func viewDidAppear(_ animated: Bool) {
self.tabBarController?.setTabBarVisible(visible: false, animated: true)
}
如何在弹出对话框中禁用方向开关
我已经研究了他们的github回购和各种帖子,但没有任何提示
谢谢和问候 您是否尝试将应用程序定向为仅纵向