Browse Source

修改显示单位 字符

jsonwang 3 years ago
parent
commit
c07ee6ca90

+ 2 - 0
BFRecordScreenKit/Classes/RecordScreen/View/BFAudioSettingView.swift

@@ -40,6 +40,7 @@ class BFAudioSettingView: UIView {
         haveSpeakSlider.maximumTrackTintColor = UIColor.hexColor(hexadecimal: "#E6E8E8")
         haveSpeakSlider.minimumTrackTintColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
         haveSpeakSlider.tag = 10
+        haveSpeakSlider.unit = "%"
 //        speechSlidView.addTarget(self, action: #selector(sliderTouchEnded(sender:)), for: .touchUpInside)
         haveSpeakSlider.maximumValue = 100
         haveSpeakSlider.minimumValue = 0
@@ -74,6 +75,7 @@ class BFAudioSettingView: UIView {
 //        speechSlidView.addTarget(self, action: #selector(sliderTouchEnded(sender:)), for: .touchUpInside)
         noSpeakSlider.maximumValue = 100
         noSpeakSlider.minimumValue = 0
+        noSpeakSlider.unit = "%"
         noSpeakSlider.valueTextColor = UIColor.hexColor(hexadecimal: BFConfig.shared.styleColor.rawValue)
         noSpeakSlider.value = 100