目前,当我尝试在用户位置添加注释到地图时,注释没有显示出来。 当我将注释设置在用户位置旁边(使用相同的代码)时,它确实显示出来。
代码:
let annotation = MKPointAnnotation()
annotation.coordinate = coordinate // set coordinate
annotation.title = "Title"
annotation.subtitle = "Subtitle"
mapView.addAnnotation(annotation)