Procházet zdrojové kódy

播放完成后重置进度条

jsonwang před 3 roky
rodič
revize
c8b7d2ff54

+ 5 - 0
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -266,6 +266,11 @@ class PQStuckPointCuttingView: UIView {
         BFLog(message: "progress is \(progress) i \(selectIndex) 命中的位置:\(CGFloat(selectIndex) * oneMarginTime)")
         drawLayer.strokeColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue).cgColor
         drawLayer.setNeedsDisplay()
+        
+        if(progress >= 0.99){
+            BFLog(message: "播放完成 重新更新 UI ")
+            resetDefaultsColor()
+        }
 
     }