|
@@ -111,6 +111,7 @@ class PQStuckPointCuttingView: UIView {
|
|
|
let tatalTimeLabel = UILabel()
|
|
|
tatalTimeLabel.font = UIFont.systemFont(ofSize: 11)
|
|
|
tatalTimeLabel.textAlignment = .right
|
|
|
+ tatalTimeLabel.tag = 66
|
|
|
tatalTimeLabel.textColor = UIColor.hexColor(hexadecimal: PQBFConfig.shared.styleColor.rawValue)
|
|
|
return tatalTimeLabel
|
|
|
}()
|
|
@@ -211,8 +212,13 @@ class PQStuckPointCuttingView: UIView {
|
|
|
|
|
|
// HHZPrint("框内个数:\(wavSelectCount), 总线条数:\(wavTotalCount), 框宽:\(cropViewWidth)")
|
|
|
|
|
|
+ scrollView.subviews.forEach { lable in
|
|
|
+ if lable is UILabel && lable.tag != 66 {
|
|
|
+ lable.removeFromSuperview()
|
|
|
+ }
|
|
|
+ }
|
|
|
for index in 0 ... timeLabelCount {
|
|
|
- scrollView.viewWithTag(100 + index)?.removeFromSuperview()
|
|
|
+// scrollView.viewWithTag(100 + index)?.removeFromSuperview()
|
|
|
let titleLab = UILabel(frame: CGRect(x: CGFloat(index) * (frequencyWidth + frequencyMargin) * 10 + margin - timeLineWidth / 2, y: rateView.frame.maxY, width: timeLineWidth, height: 30))
|
|
|
titleLab.font = UIFont.systemFont(ofSize: 11)
|
|
|
titleLab.textAlignment = .center
|