From 77041c81c325c0bc88c94dc28d732f656cc4c885 Mon Sep 17 00:00:00 2001 From: 无故事王国 <841720330@qq.com> Date: 星期二, 17 十月 2023 18:28:29 +0800 Subject: [PATCH] 修复BUG --- WanPai/Root/Search/VC/SearchVC.swift | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/WanPai/Root/Search/VC/SearchVC.swift b/WanPai/Root/Search/VC/SearchVC.swift index 13374aa..eab725a 100644 --- a/WanPai/Root/Search/VC/SearchVC.swift +++ b/WanPai/Root/Search/VC/SearchVC.swift @@ -60,10 +60,11 @@ view_container.addSubview(mapView) mapView.frame = CGRect(origin: .zero, size: view_container.size) - for v in models{ + for (index,v) in models.enumerated(){ let point = MAPointAnnotation() point.coordinate = CLLocationCoordinate2D(latitude: v.latitude, longitude:v.longitude) - point.title = v.storeAddr + point.title = v.storeName + v.index = index v.annotation = point } -- Gitblit v1.7.1