From 6ce1d1eb369bb7a8ab3f17e604572e6fbb5e3681 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Wed, 6 Mar 2024 10:22:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A7=86=E5=9B=BEbug?= =?UTF-8?q?=EF=BC=9A=E7=A9=BA=E9=97=B4=E6=8B=8D=E6=91=84=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E5=B0=86tiplabel=E6=98=BE=E7=A4=BA=E5=9C=A8=E6=9C=80?= =?UTF-8?q?=E5=A4=96=E5=87=BA=EF=BC=8C=E5=90=8C=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=97=B6=E9=95=BF=EF=BC=9A3s=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E7=AB=96=E5=B1=8F=E6=97=B6=E8=83=BD=E5=A4=9F?= =?UTF-8?q?=E7=9C=8B=E5=BE=97=E6=B8=85=E6=A5=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RecordingVideo/CCSpatialShootController.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift index e05b886..73492bc 100644 --- a/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift +++ b/SwiftProject/SwiftProject/Project/Controller/RecordingVideo/CCSpatialShootController.swift @@ -53,7 +53,8 @@ class CCSpatialShootController: BaseController { lazy var tipsLabel: UILabel = { let label = UILabel.init(frame: CGRectMake((KScreenWidth - 320)/2, KNavigationBarHeight+KStatusBarHeight + 20, 320, 36)) - label.backgroundColor = UIColor(hexString: "ffffff", alpha: 0.2) +// label.backgroundColor = UIColor(hexString: "ffffff", alpha: 0.2) + label.backgroundColor = UIColor.darkGray label.font = KFont_Medium(12) label.textColor = KTextColor_White label.text = "你只需捕捉美好,转码交给我们" @@ -266,8 +267,9 @@ class CCSpatialShootController: BaseController { NotificationCenter.default.addObserver(self, selector: #selector(orientationDidChange), name: UIDevice.orientationDidChangeNotification, object: nil) configureSession() // 设置相机参数 - showTips() + setUI() + showTips() self.view.bringSubviewToFront(navtionImgView!) //判断当前是否是横屏 @@ -467,7 +469,7 @@ class CCSpatialShootController: BaseController { func showTips() { self.view.addSubview(tipsLabel) self.view.bringSubviewToFront(tipsLabel) - UIView.animate(withDuration: 0.2, delay: 2.0,options: .curveEaseInOut) { + UIView.animate(withDuration: 3, delay: 2.0,options: .curveEaseInOut) { self.tipsLabel.alpha = 0 } completion: { finished in self.tipsLabel.isHidden = true @@ -475,7 +477,6 @@ class CCSpatialShootController: BaseController { } func showHorizontalScreenTips() { - self.horizontalImageView.isHidden = false self.horizontalLabel.isHidden = false @@ -493,7 +494,6 @@ class CCSpatialShootController: BaseController { } func hidenHorizontalScreenTips() { - UIView.animate(withDuration: 0.5) { self.horizontalImageView.alpha = 0.0 self.horizontalLabel.alpha = 0.0