更改横竖屏的背景
This commit is contained in:
parent
40ff5ead6e
commit
5ebebd257a
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user