MKMapView Clicking on pins won't call didSelectAnnotationView

前端 未结 1 843
说谎
说谎 2020-12-20 18:58

I am using a mapView and am trying to make a callout pop up when you click on a pin which is shown on the map.

The pins manage to be placed in the proper locations

1条回答
  •  长情又很酷
    2020-12-20 19:43

    If tapping on a pin doesn't show the callout even if canShowCallout is YES, then the annotation's title is probably nil or blank.

    If the title is blank, the callout won't show nor will the didSelectAnnotationView delegate method get called.

    0 讨论(0)
提交回复
热议问题