【发布时间】:2021-08-17 08:29:39
【问题描述】:
我在星期一将一个应用程序上传到了 AppStore。一切正常。从星期四开始,添加注释的标题不再可见。
该应用有一系列兴趣点。每个都有一个标题和坐标。 PoI 正在显示,我可以过滤它们以获得标题。 但标题不可见。
【问题讨论】:
-
请给我们一些相关的代码
-
func createAnnotations(locations: [[String : Any]]) { for location in locations { let annotations = MKPointAnnotation() annotations.title = location["title"] as? String annotations.coordinate = CLLocationCoordinate2D(latitude: location["latitude"] as! CLLocationDegrees, longitude: location["longitude"] as! CLLocationDegrees) myMapView.addAnnotation(annotations) } }
标签: annotations mapkit point-of-interest