我在Swift中完成了一个地图视图应用程序,它将pin添加到地图视图中。如何自动显示引脚上方的所有标题而不单击它们。
答案 0 :(得分:0)
I don´t think it´s possible to show all the titles for your annotations at the same time. There is only support to show one title at a time.
You can do that by adding this row:
mapView.selectAnnotation(mapView.annotations[0], animated: true)
Here I select the annotation with index 0
.