Bladeren bron

添加逻辑判断

jsonwang 3 jaren geleden
bovenliggende
commit
5a76e719b8
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

+ 4 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -255,7 +255,10 @@ class PQStuckPointCuttingView: UIView {
     /// 更新进度绘制不同色值
     /// progress <#progress description#>
     func updateProgress(progress: CGFloat) {
-
+        
+        if(progress < 0){
+            BFLog(message: "progress is error ")
+        }
         let startIndex = stuckPointStartTime / oneMarginTime
         BFLog(message: "startIndex is\(startIndex) stuckPointStartTime is: \(stuckPointStartTime)")
         let selectIndex = Int(startIndex + progress * CGFloat(wavSelectCount))