如何在地图视图中显示引脚上方的所有标题?

时间:2017-04-08 22:21:17

标签: swift dictionary view mkmapview

我在Swift中完成了一个地图视图应用程序,它将pin添加到地图视图中。如何自动显示引脚上方的所有标题而不单击它们。

1 个答案:

答案 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.