图片浏览---红蓝立体的按钮文本居中

This commit is contained in:
bluesea 2024-04-29 17:23:36 +08:00
parent 88b995b95a
commit c2e73588b5
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ class CCSpatialPhotoDisplayController: BaseController {
button.tag = 202 button.tag = 202
button.isSelected = false button.isSelected = false
button.addTarget(self, action: #selector(navgationButtonClick2(sender:)), for: UIControl.Event.touchUpInside) button.addTarget(self, action: #selector(navgationButtonClick2(sender:)), for: UIControl.Event.touchUpInside)
button.frame = CGRect(x: 2, y: 10, width: SCREEN_Width * 0.4, height: 36) button.frame = CGRect(x: 2, y: 10, width: SCREEN_Width * 0.4 + 20, height: 36)
button.centerY = StatuBar_Height + NavBar_Height * 0.5 button.centerY = StatuBar_Height + NavBar_Height * 0.5
button.centerX = SCREEN_Width * 0.5 button.centerX = SCREEN_Width * 0.5
button.clipsToBounds = true button.clipsToBounds = true
@ -133,7 +133,7 @@ class CCSpatialPhotoDisplayController: BaseController {
button.setTitleColor(UIColor.white, for: UIControl.State.normal) button.setTitleColor(UIColor.white, for: UIControl.State.normal)
button.titleLabel?.font = KFont_Medium(14) button.titleLabel?.font = KFont_Medium(14)
button.updateBtnEdgeInsets(style: .Right, space: 5) button.updateBtnEdgeInsets(style: .Right, space: 10)
return button return button
}() }()