overridefunc supportedInterfaceOrientations()->Int{
returnInt(UIInterfaceOrientationMask.Portrait.rawValue)
}
overridefunc supportedInterfaceOrientations()->Int{
returnInt(UIInterfaceOrientationMask.Portrait.rawValue)
}
本文标题:swift 禁止app横屏的方式
本文链接:https://www.haomeiwen.com/subject/nukwqttx.html
网友评论
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask{
return UIInterfaceOrientationMask.Portrait
}
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait
}