|
@@ -205,7 +205,7 @@ class PQStuckPointCuttingView: UIView {
|
|
|
|
|
|
func addData() {
|
|
func addData() {
|
|
// 1,选择区内的线个数 ,划动区域后 个数会变???
|
|
// 1,选择区内的线个数 ,划动区域后 个数会变???
|
|
- wavSelectCount = Int(ceil((cropViewWidth - frequencyWidth) / (frequencyWidth + frequencyMargin)) + 1)
|
|
|
|
|
|
+ wavSelectCount = Int(ceil((adapterWidth(width: 250) - frequencyWidth) / (frequencyWidth + frequencyMargin)) + 1)
|
|
|
|
|
|
cropViewWidth = CGFloat(wavSelectCount) * (frequencyWidth + frequencyMargin) + frequencyWidth
|
|
cropViewWidth = CGFloat(wavSelectCount) * (frequencyWidth + frequencyMargin) + frequencyWidth
|
|
margin = (cScreenWidth - cropViewWidth) / 2.0
|
|
margin = (cScreenWidth - cropViewWidth) / 2.0
|