更改横竖屏的背景

This commit is contained in:
bluesea 2024-04-30 16:56:36 +08:00
parent 40ff5ead6e
commit 5ebebd257a

View File

@ -209,6 +209,14 @@ public class CCSpatialDisplayTypeView: UIView {
self.subviews.forEach { v in
v.removeFromSuperview()
}
if isLandspaceScreen {
self.frame = CGRect(origin: .zero, size: CGSize(width: KScrH, height: KScrW))
}
else{
self.frame = UIScreen.main.bounds
}
self.backgroundColor = UIColor.black.withAlphaComponent(popMenuOutAlpha)
let arrowPs = getArrowPoints()