D•
Size: a a a
D•
R🦐
D•
R🦐
А
var orientationValue: Int?
if UIDevice.current.orientation == .landscapeLeft {
// Home button to the right.
orientationValue = UIInterfaceOrientation.landscapeLeft.rawValue
} else if UIDevice.current.orientation == .landscapeRight {
// Home button to the left.
orientationValue = UIInterfaceOrientation.landscapeRight.rawValue
}
UIDevice.current.setValue(orientationValue, forKey: "orientation”)
landscapeLeft
- меняет вправо. Если меняешь меставми строчки - совсем не работает =)AT
ЕК
ЕК
KK
🅰Б
🅰Б
KK
🅰Б
KK
🙋