jsonwang 3 rokov pred
rodič
commit
62249b1215

+ 3 - 5
BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

@@ -53,7 +53,7 @@ class PQSpeedSettingView: UIView {
                      "1.0x\n0.3x",
                      "1.0x\n0.2x",
                      "自定义\n快慢速"]
-                let tempMaxSpeed = [6, 5, 4, 3, 2.4, 1.0, 1.0, 0.0]
+                let tempMaxSpeed = [6, 5, 4, 3, 2.4, 1.0, 0.0]
                 let tempMinSpeed = [1.2, 1.0, 0.5, 0.4, 0.3, 0.2, 0.0]
                 for (index, str) in tempTitle.enumerated() {
                     let model = PQSpeedTitleModel()
@@ -120,7 +120,7 @@ extension PQSpeedSettingView: UICollectionViewDelegate, UICollectionViewDataSour
         lastSelectModel = datas[indexPath.row]
 
         if selectSpeedCallBack != nil {
-            BFLog(message: "选择的速度为 max: \(lastSelectModel?.maxSpeed ?? 0.0) min: lastSelectModel?.minSpeed ?? 0.0")
+            BFLog(message: "选择的速度为 max: \(lastSelectModel?.maxSpeed ?? 0.0) min: \(lastSelectModel?.minSpeed ?? 0.0)")
             selectSpeedCallBack!(lastSelectModel?.maxSpeed ?? 0.0, lastSelectModel?.minSpeed ?? 0.0)
         }
     }
@@ -146,9 +146,7 @@ class PQSpeedTitleModel: NSObject {
     var title: String = ""
     // 是否已经选择
     var isSelected: Bool = false
-    // 对应的值
-    var titleValue = ""
-
+ 
     // 最大、最小速度
     var maxSpeed: Float = 0.0
     var minSpeed: Float = 0.0