From 2aac1ba6449741aedbf97d75c340719a7b67d7db Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期四, 07 八月 2025 21:12:23 +0800 Subject: [PATCH] fix --- WanPai/Root/Search/View/CustomPointAnnotationView.swift | 70 +++++++++++++++++----------------- 1 files changed, 35 insertions(+), 35 deletions(-) diff --git a/WanPai/Root/Search/View/CustomPointAnnotationView.swift b/WanPai/Root/Search/View/CustomPointAnnotationView.swift index 736bc36..e929125 100644 --- a/WanPai/Root/Search/View/CustomPointAnnotationView.swift +++ b/WanPai/Root/Search/View/CustomPointAnnotationView.swift @@ -7,38 +7,38 @@ import UIKit -class CustomPointAnnotationView: MAAnnotationView { - - var label:UILabel! - - override init!(annotation: MAAnnotation!, reuseIdentifier: String!) { - super.init(annotation: annotation, reuseIdentifier: reuseIdentifier) - setUI() - } - - override init(frame: CGRect) { - super.init(frame: frame) - - } - - - private func setUI(){ - label = UILabel(text: "") - label.textColor = .white - label.font = UIFont.systemFont(ofSize: 11, weight: .medium) - addSubview(label) - label.snp.makeConstraints { make in - make.center.equalToSuperview().inset(UIEdgeInsets(top: -3, left: 0, bottom: 0, right: 0)) - } - } - - override func setSelected(_ selected: Bool, animated: Bool) { - super.setSelected(selected, animated: animated) - - - } - - required init?(coder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } -} +//class CustomPointAnnotationView: MAAnnotationView { +// +// var label:UILabel! +// +// override init!(annotation: MAAnnotation!, reuseIdentifier: String!) { +// super.init(annotation: annotation, reuseIdentifier: reuseIdentifier) +// setUI() +// } +// +// override init(frame: CGRect) { +// super.init(frame: frame) +// +// } +// +// +// private func setUI(){ +// label = UILabel(text: "") +// label.textColor = .white +// label.font = UIFont.systemFont(ofSize: 11, weight: .medium) +// addSubview(label) +// label.snp.makeConstraints { make in +// make.center.equalToSuperview().inset(UIEdgeInsets(top: -3, left: 0, bottom: 0, right: 0)) +// } +// } +// +// override func setSelected(_ selected: Bool, animated: Bool) { +// super.setSelected(selected, animated: animated) +// +// +// } +// +// required init?(coder: NSCoder) { +// fatalError("init(coder:) has not been implemented") +// } +//} -- Gitblit v1.7.1