|
@@ -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))
|