From 5f9cd3ae516f510a9475fd11f440fedf027aa4df Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期三, 08 十一月 2023 18:44:42 +0800 Subject: [PATCH] 修复BUG --- WanPai/Root/Search/View/CustomPointAnnotationView.swift | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/WanPai/Root/Search/View/CustomPointAnnotationView.swift b/WanPai/Root/Search/View/CustomPointAnnotationView.swift index 459f9ed..736bc36 100644 --- a/WanPai/Root/Search/View/CustomPointAnnotationView.swift +++ b/WanPai/Root/Search/View/CustomPointAnnotationView.swift @@ -16,13 +16,19 @@ setUI() } + override init(frame: CGRect) { + super.init(frame: frame) + + } + private func setUI(){ - label = UILabel(text: "123") - label.textColor = .black + label = UILabel(text: "") + label.textColor = .white + label.font = UIFont.systemFont(ofSize: 11, weight: .medium) addSubview(label) label.snp.makeConstraints { make in - make.center.equalToSuperview() + make.center.equalToSuperview().inset(UIEdgeInsets(top: -3, left: 0, bottom: 0, right: 0)) } } -- Gitblit v1.7.1